mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-17 09:25:17 +00:00

- 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)
23 lines
717 B
JSON
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 |