File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 48
48
49
49
def create_app (config_name ):
50
50
print ("Environment is" , config_name )
51
+ frontend_url = get_fe_url ()
51
52
if config_name != "testing" and config_name != "development" :
52
53
sentry_sdk .init (
53
54
dsn = "https://85a9bf2fc71b287cc4e60cb9f918f034@o4507682847850496.ingest.us.sentry.io/4507801405227008" ,
@@ -59,7 +60,9 @@ def create_app(config_name):
59
60
# We recommend adjusting this value in production.
60
61
profiles_sample_rate = 1.0 ,
61
62
# Config name is either development or testing or production
62
- environment = config_name ,
63
+ environment = "staging"
64
+ if frontend_url .find ("staging" ) != - 1
65
+ else "production" ,
63
66
send_default_pii = True ,
64
67
)
65
68
dictConfig (
@@ -116,6 +119,7 @@ def create_app(config_name):
116
119
"https://feeding-canadian-kids-prod.firebaseapp.com" ,
117
120
"https://feeding-canadian-kids-prod.web.app" ,
118
121
"https://mealpairingplatform.feedingcanadiankids.org" ,
122
+ "https://api.mealpairingplatform.feedingcanadiankids.org" ,
119
123
get_fe_url (),
120
124
]
121
125
app .config ["CORS_SUPPORTS_CREDENTIALS" ] = True
You can’t perform that action at this time.
0 commit comments