Skip to content

Commit

Permalink
Try rewriting the index.html again
Browse files Browse the repository at this point in the history
  • Loading branch information
OLILHR committed Nov 5, 2024
1 parent a1f8007 commit 52eba53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"navigationFallback": {
"rewrite": "/404.html"
"rewrite": "/index.html"
},
"responseOverrides": {
"404": {
"rewrite": "/index.html",
"statusCode": 404
}
}
}
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const config = {
adapter: adapter({
pages: "build",
assets: "build",
fallback: "404.html",
fallback: "index.html",
paths: {
base: process.env.BASE_PATH || "",
},
Expand Down

0 comments on commit 52eba53

Please sign in to comment.