Skip to content

Commit

Permalink
Try serving only the 404.html
Browse files Browse the repository at this point in the history
  • Loading branch information
OLILHR committed Oct 29, 2024
1 parent ee72568 commit da8bb5e
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,8 @@
{
"trailingSlash": "auto",
"routes": [
{
"route": "/*",
"serve": "/index.html",
"statusCode": 200
}
],
"navigationFallback": {
"rewrite": "404.html",
"exclude": ["/images/*.{png,jpg,gif}", "/css/*", "/js/*", "/fonts/*"]
},
"responseOverrides": {
"400": {
"rewrite": "/"
},
"401": {
"redirect": "/",
"statusCode": 302
},
"403": {
"rewrite": "/"
},
"404": {
"rewrite": "/"
"rewrite": "/404.html",
"statusCode": 404
}
},
"globalHeaders": {
"content-security-policy": "default-src https: 'unsafe-eval' 'unsafe-inline'; object-src 'none'"
},
"mimeTypes": {
".json": "text/json"
}
}

0 comments on commit da8bb5e

Please sign in to comment.