fix(web): rename mail env vars and pass build context to Dockerfile to fix CMS white screen
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🏗️ Build (push) Successful in 23m32s
Build & Deploy / 🚀 Deploy (push) Successful in 2m25s
Build & Deploy / 🧪 QA (push) Successful in 3m50s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 4m49s
Build & Deploy / 🔔 Notify (push) Successful in 3s

This commit is contained in:
2026-04-01 11:16:05 +02:00
parent 19ef042fb6
commit 76e25d03b9
9 changed files with 67 additions and 26 deletions

18
apps/web/test-env.ts Normal file
View File

@@ -0,0 +1,18 @@
import { z } from "zod";
import { validateMintelEnv } from "@mintel/next-utils";
const envExtension = {
SENTRY_DSN: z.string().url().nullish().or(z.literal("")),
};
process.env.SENTRY_DSN = " ";
console.log("Empty Space:");
try {
validateMintelEnv(envExtension);
} catch (e) {}
process.env.SENTRY_DSN = "\n";
console.log("Newline:");
try {
validateMintelEnv(envExtension);
} catch (e) {}