spotube/vercel.json
IANewCool 2c0cbcdf82 improve(ci): optimize Vercel deploy workflow
- Update Flutter version to 3.29.2 (matches project FVM config)
- Add pub-cache for faster builds
- Auto-create .env file with required variables
- Add security headers (X-Frame-Options, CSRF protection)
- Optimize static asset caching (1 year immutable)
2025-08-11 19:49:47 -04:00

23 lines
717 B
JSON

{
"cleanUrls": true,
"trailingSlash": false,
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }],
"headers": [
{
"source": "/(.*)",
"headers": [
{ "key": "X-Frame-Options", "value": "DENY" },
{ "key": "X-Content-Type-Options", "value": "nosniff" },
{ "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" },
{ "key": "Permissions-Policy", "value": "camera=(), microphone=(), geolocation=()" }
]
},
{
"source": "/(.*\\.(js|css|ico|png|jpg|jpeg|gif|svg|woff|woff2|ttf|eot))",
"headers": [
{ "key": "Cache-Control", "value": "public, max-age=31536000, immutable" }
]
}
]
}
JSON < /dev/null