fix: Simplificar vercel.json para resolver problemas de build

This commit is contained in:
2026-02-24 08:14:53 -03:00
parent da6b1c8847
commit 569747f166
2 changed files with 187 additions and 37 deletions

View File

@@ -2,47 +2,11 @@
"buildCommand": "npm run build",
"outputDirectory": "dist",
"framework": "vite",
"installCommand": "npm ci",
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
}
],
"headers": [
{
"source": "/service-worker.js",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=0, must-revalidate"
}
]
},
{
"source": "/(.*\\.(js|css|png|jpg|jpeg|gif|ico|svg))$",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/(.*)",
"headers": [
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
}
]
}
]
}