fix redirect problem

This commit is contained in:
Dominic Villemure
2024-05-06 20:45:06 -04:00
parent ef18885b56
commit 97ac107af7
3 changed files with 226 additions and 165 deletions

19
staticwebapp.config.json Normal file
View File

@@ -0,0 +1,19 @@
{
"navigationFallback": {
"rewrite": "/index.html",
"exclude": ["/images/*.{png,jpg,gif}", "/css/*"]
},
"globalHeaders": {
"content-security-policy": "default-src https:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src https: data:;"
},
"mimeTypes": {
".json": "application/json",
".webmanifest": "application/manifest+json"
},
"responseOverrides": {
"404": {
"rewrite": "/index.html",
"statusCode": 200
}
}
}