Turbo was stripping env vars during build on Vercel. Added all required vars to turbo.json build task. Also hardened Supabase and BetterAuth init with fallback placeholders for build-time safety. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
767 B
JSON
34 lines
767 B
JSON
{
|
|
"$schema": "https://v2-8-1.turborepo.dev/schema.json",
|
|
"ui": "tui",
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"inputs": ["$TURBO_DEFAULT$", ".env*"],
|
|
"outputs": [".next/**", "!.next/cache/**", "dist/**"],
|
|
"env": [
|
|
"BETTER_AUTH_SECRET",
|
|
"BETTER_AUTH_URL",
|
|
"GOOGLE_CLIENT_ID",
|
|
"GOOGLE_CLIENT_SECRET",
|
|
"RESEND_API_KEY",
|
|
"POSTGRES_URL",
|
|
"NEXT_PUBLIC_SUPABASE_URL",
|
|
"NEXT_PUBLIC_SUPABASE_ANON_KEY",
|
|
"SUPABASE_SERVICE_ROLE_KEY"
|
|
]
|
|
},
|
|
"lint": {
|
|
"dependsOn": ["^lint"]
|
|
},
|
|
"check-types": {
|
|
"dependsOn": ["^check-types"]
|
|
},
|
|
"dev": {
|
|
"dependsOn": ["^build"],
|
|
"cache": false,
|
|
"persistent": true
|
|
}
|
|
}
|
|
}
|