diff --git a/staticwebapp.config.json b/staticwebapp.config.json index 64512a4..7556788 100644 --- a/staticwebapp.config.json +++ b/staticwebapp.config.json @@ -1,8 +1,21 @@ { + "navigationFallback": { + "rewrite": "/index.html", + "exclude": ["/*.png", "/*.jpg", "/*.gif", "/*.svg", "/*.css", "/*.js"] + }, + "routes": [ + { + "route": "/ebd/*", + "rewrite": "/index.html" + }, + { + "route": "/*", + "rewrite": "/index.html" + } + ], "responseOverrides": { "404": { - "rewrite": "/404.html", - "statusCode": 404 + "rewrite": "/index.html" } } } diff --git a/svelte.config.js b/svelte.config.js index 9ac95d5..ac440bb 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -8,7 +8,7 @@ const config = { adapter: adapter({ pages: "build", assets: "build", - fallback: "404.html", + fallback: "index.html", paths: { base: process.env.BASE_PATH || "", },