Skip to content

Commit

Permalink
Merge branch 'main' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
Moggach committed Aug 28, 2024
2 parents 2217772 + 7dc66e3 commit cc3385a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def configure_posthog(self):


basic_posthog_event_properties = {
"environment": settings.FLY_APP_NAME,
"environment": settings.RENDER_APP_NAME,
"debug": settings.DEBUG,
"base_url": settings.BASE_URL,
}
6 changes: 3 additions & 3 deletions app/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,8 @@
# Github
GIT_SHA = os.getenv("GIT_SHA", None)

# Fly
FLY_APP_NAME = os.getenv("FLY_APP_NAME", None)
# Render
RENDER_APP_NAME = os.getenv("RENDER_APP_NAME", None)

# Circle
CIRCLE_API_KEY = os.getenv("CIRCLE_API_KEY", None)
Expand Down Expand Up @@ -406,7 +406,7 @@
# If you wish to associate users to errors (assuming you are using
# django.contrib.auth) you may enable sending PII data.
send_default_pii=True,
environment=FLY_APP_NAME,
environment=RENDER_APP_NAME,
release=GIT_SHA,
)

Expand Down
2 changes: 1 addition & 1 deletion app/templates/posthog/globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% include "app/includes/window_setting.html" with setting_name="SENTRY_PROJECT_ID" %}
{% include "app/includes/window_setting.html" with setting_name="SENTRY_ORG_SLUG" %}
{% include "app/includes/window_setting.html" with setting_name="SENTRY_DSN" %}
{% include "app/includes/window_setting.html" with setting_name="FLY_APP_NAME" %}
{% include "app/includes/window_setting.html" with setting_name="RENDER_APP_NAME" %}
{% include "app/includes/window_setting.html" with setting_name="GIT_SHA" %}
{% include "app/includes/window_setting.html" with setting_name="STRIPE_LIVE_MODE" parse="boolean" %}
</script>
2 changes: 1 addition & 1 deletion env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export declare global {
SENTRY_PROJECT_ID?: string;
SENTRY_ORG_SLUG?: string;
SENTRY_DSN?: string;
FLY_APP_NAME?: string;
RENDER_APP_NAME?: string;
GIT_SHA?: string;
STRIPE_LIVE_MODE: boolean;
userData?: {
Expand Down
2 changes: 1 addition & 1 deletion frontend/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function initialiseSentry() {

Sentry.init({
dsn: window.SENTRY_DSN,
environment: window.FLY_APP_NAME,
environment: window.RENDER_APP_NAME,
release: window.GIT_SHA,

// Alternatively, use `process.env.npm_package_version` for a dynamic release version
Expand Down

0 comments on commit cc3385a

Please sign in to comment.