Skip to content

Commit

Permalink
Setup new be domain and sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
shahanneda committed Sep 2, 2024
1 parent c8a044f commit 45b9e39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

def create_app(config_name):
print("Environment is", config_name)
frontend_url = get_fe_url()
if config_name != "testing" and config_name != "development":
sentry_sdk.init(
dsn="https://85a9bf2fc71b287cc4e60cb9f918f034@o4507682847850496.ingest.us.sentry.io/4507801405227008",
Expand All @@ -59,7 +60,9 @@ def create_app(config_name):
# We recommend adjusting this value in production.
profiles_sample_rate=1.0,
# Config name is either development or testing or production
environment=config_name,
environment="staging"
if frontend_url.find("staging") != -1
else "production",
send_default_pii=True,
)
dictConfig(
Expand Down Expand Up @@ -116,6 +119,7 @@ def create_app(config_name):
"https://feeding-canadian-kids-prod.firebaseapp.com",
"https://feeding-canadian-kids-prod.web.app",
"https://mealpairingplatform.feedingcanadiankids.org",
"https://api.mealpairingplatform.feedingcanadiankids.org",
get_fe_url(),
]
app.config["CORS_SUPPORTS_CREDENTIALS"] = True
Expand Down

0 comments on commit 45b9e39

Please sign in to comment.