Load .env in env.ts so SvelteKit SSR sees DATABASE_URL etc.

Without dotenv/config the SvelteKit dev server SSR sees only the
ambient shell env, so the Zod validator rejected all four required
variables with Required. drizzle.config.ts already does this; match.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-21 16:33:50 +07:00
parent 95c1f61c88
commit 98fe341e80
+1
View File
@@ -1,3 +1,4 @@
import 'dotenv/config';
import { z } from 'zod';
const EnvSchema = z.object({