Skip to content

Commit

Permalink
fix(envVars): fallback POSTHOG_API_HOST to eu.i.posthog.com
Browse files Browse the repository at this point in the history
  • Loading branch information
chohner committed Nov 11, 2024
1 parent 27ea2d1 commit 3febab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/env/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const envFromNode = () =>
export function config() {
const env = envFromBrowser() ?? envFromNode() ?? {};
return {
POSTHOG_API_HOST: env.POSTHOG_API_HOST?.trim(),
POSTHOG_API_HOST: env.POSTHOG_API_HOST?.trim() ?? "eu.i.posthog.com",
POSTHOG_API_KEY: env.POSTHOG_API_KEY?.trim(),
SENTRY_DSN: env.SENTRY_DSN?.trim(),
ENVIRONMENT: env.ENVIRONMENT ?? "local",
Expand Down

0 comments on commit 3febab4

Please sign in to comment.