feat: add env.mjs for centralized env validation (t3-env)

Validates all required env vars at runtime with zod schemas.
Skips validation during build via SKIP_ENV_VALIDATION flag.
Replaces scattered process.env access with typed env imports.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Aymeric Rabot
2026-02-19 01:47:36 -05:00
co-authored by Claude Opus 4.6
parent 4c0d0885a3
commit 867681e1da
6 changed files with 81 additions and 12 deletions
+3 -1
View File
@@ -31,6 +31,7 @@
"@react-three/uikit-lucide": "^1.0.60",
"@repo/ui": "*",
"@supabase/supabase-js": "^2.95.3",
"@t3-oss/env-nextjs": "^0.13.10",
"@tailwindcss/postcss": "^4.1.18",
"@types/three": "^0.182.0",
"@vercel/analytics": "^1.6.1",
@@ -48,7 +49,8 @@
"react": "^19.2.0",
"react-dom": "^19.2.0",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.18"
"tailwindcss": "^4.1.18",
"zod": "^4.3.6"
},
"devDependencies": {
"@repo/typescript-config": "*",