stack/apps/backend
Aman Ganapathy 45df7518c3
[Refactor] Rework Environment Variable Checks in Email-Rendering Pipeline (#1161)
### 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.
2026-02-04 16:54:18 -08:00
..
prisma Test sign-up rules widget 2026-02-04 11:22:42 -08:00
scripts Check all users when verifying data integrity 2026-02-03 10:00:30 -08:00
src [Refactor] Rework Environment Variable Checks in Email-Rendering Pipeline (#1161) 2026-02-04 16:54:18 -08:00
.env Fix tests 2026-01-30 16:20:01 -08:00
.env.development [Refactor] Rework Environment Variable Checks in Email-Rendering Pipeline (#1161) 2026-02-04 16:54:18 -08:00
.eslintrc.cjs tsup for stack-shared (#647) 2025-04-28 21:26:52 -07:00
.gitignore Migrations toolkit (#409) 2025-02-01 17:46:21 -08:00
instrumentation-client.ts Upgrade backend to Next.js 16 2025-12-12 16:59:07 -08:00
LICENSE Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
next.config.mjs Upgrade Prisma to v7 (#1064) 2025-12-26 08:13:34 -08:00
package.json chore: update package versions 2026-02-04 10:01:04 -08:00
prisma.config.ts Upgrade Prisma to v7 (#1064) 2025-12-26 08:13:34 -08:00
tsconfig.json fix flaky typecheck test (#1072) 2025-12-17 12:26:12 -08:00
vercel.json Update vercel.json 2025-12-16 12:02:11 -08:00
vitest.config.ts Customizable ports (#962) 2025-10-20 15:24:47 -07:00
vitest.setup.ts Customizable ports (#962) 2025-10-20 15:24:47 -07:00