monkeytype/frontend/firebase.json

79 lines
1.7 KiB
JSON
Raw Normal View History

2020-05-09 08:29:47 +08:00
{
"hosting": {
"public": "public",
2020-08-12 05:02:25 +08:00
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
2020-11-01 02:03:28 +08:00
{
"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"
},
2020-08-12 05:02:25 +08:00
{
"source": "**",
"destination": "/index.html"
}
2020-05-09 08:29:47 +08:00
],
"cleanUrls": true,
2021-11-13 01:13:10 +08:00
"trailingSlash": false,
"headers": [
{
"source": "**/*",
"headers": [
{
"key": "Content-Security-Policy",
"value": "frame-ancestors 'none'"
},
{ "key": "X-Frame-Options", "value": "DENY" }
]
},
{
2022-10-09 08:01:40 +08:00
"source": "/**",
2022-10-09 06:22:34 +08:00
"headers": [
{
"key": "Cache-Control",
2022-10-09 08:01:40 +08:00
"value": "no-cache, no-store, must-revalidate"
2022-10-09 06:22:34 +08:00
}
]
},
{
2022-10-14 16:48:50 +08:00
"source": "**/*.@(jpg|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css|wav|txt)",
2022-10-09 06:22:34 +08:00
"headers": [
{
"key": "Cache-Control",
2022-10-09 08:01:40 +08:00
"value": "max-age=604800"
2022-10-09 06:22:34 +08:00
}
]
},
2022-10-10 02:52:34 +08:00
{
"source": "**/*.@(json)",
"headers": [
{
"key": "Cache-Control",
2022-10-10 02:53:06 +08:00
"value": "max-age=7200"
2022-10-10 02:52:34 +08:00
}
]
},
2022-10-09 06:22:34 +08:00
{
"source": "/service-worker.js",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
}
]
2021-11-13 01:13:10 +08:00
}
]
2020-05-09 08:29:47 +08:00
}
2020-08-12 05:02:25 +08:00
}