chore(static web apps): fix 404 page

This commit is contained in:
grassblock 2025-05-18 16:48:51 +08:00
parent d3a8d4eb89
commit 3b96b42d4b

19
staticwebapp.config.json Normal file
View file

@ -0,0 +1,19 @@
{
"trailingSlash": "auto",
"routes": [
{
"route": "/*",
"headers": {
"cache-control": "must-revalidate, max-age=15770000"
}
}
],
"responseOverrides": {
"404": {
"rewrite": "/404.html"
}
},
"globalHeaders": {
"content-security-policy": "default-src https: 'unsafe-eval' 'unsafe-inline'; object-src 'none'"
}
}