mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
78 lines
1.7 KiB
JSON
78 lines
1.7 KiB
JSON
{
|
|
"hosting": {
|
|
"public": "public",
|
|
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
|
|
"rewrites": [
|
|
{
|
|
"source": "/privacy-policy",
|
|
"destination": "/privacy-policy.html"
|
|
},
|
|
{
|
|
"source": "/terms-of-service",
|
|
"destination": "/terms-of-service.html"
|
|
},
|
|
{
|
|
"source": "/security-policy",
|
|
"destination": "/security-policy.html"
|
|
},
|
|
{
|
|
"source": "/adtest",
|
|
"destination": "/adtest.html"
|
|
},
|
|
{
|
|
"source": "**",
|
|
"destination": "/index.html"
|
|
}
|
|
],
|
|
"cleanUrls": true,
|
|
"trailingSlash": false,
|
|
"headers": [
|
|
{
|
|
"source": "**/*",
|
|
"headers": [
|
|
{
|
|
"key": "Content-Security-Policy",
|
|
"value": "frame-ancestors 'none'"
|
|
},
|
|
{ "key": "X-Frame-Options", "value": "DENY" }
|
|
]
|
|
},
|
|
{
|
|
"source": "/**",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "no-cache, no-store, must-revalidate"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "max-age=604800"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "**/*.@(json)",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "max-age=7200"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/service-worker.js",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "no-cache, no-store, must-revalidate"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|