mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
### Context Via the email-monitor and sentry traces, we found out that we were running the "without fallback" path in production. This was because the right environment variables weren't populated in Vercel, but it exposed how our system let this slide. This occurred because the check we did for fallback vs non-fallback routes relied on checking whether a certain environment variable was empty. ### Summary of Changes We now use a sentinel value for the check instead of an empty value. Additionally, we remove default values from the `getEnvVariable` checks to ensure they throw if not populated. We also guard against the sentinel value being used in production ### Config Changes We need to update and make sure the vercel sandbox environment variables are populated in production. |
||
|---|---|---|
| .. | ||
| backend | ||
| dashboard | ||
| dev-launchpad | ||
| e2e | ||
| mock-oauth-server | ||
| oauth-mock-server | ||