Files
Generadordeguiones/vercel.json
Hanzo_dev 78e8e48759 fix: corregir routing de Vercel y validar variables de entorno de Supabase
- vercel.json: rewrite explícito para /api/* evita que el catch-all SPA intercepte las serverless functions
- supabase.js: lanza error claro si SUPABASE_URL o SUPABASE_SERVICE_ROLE_KEY no están definidas

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-29 19:30:46 -05:00

12 lines
311 B
JSON

{
"buildCommand": "cd frontend && npm install && npm run build",
"outputDirectory": "frontend/dist",
"functions": {
"api/**/*.js": { "maxDuration": 60 }
},
"rewrites": [
{ "source": "/api/(.*)", "destination": "/api/$1" },
{ "source": "/((?!api/).*)", "destination": "/index.html" }
]
}