- 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>
12 lines
311 B
JSON
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" }
|
|
]
|
|
}
|