Skip to content

Commit

Permalink
Add index.html as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
gchartier committed Aug 14, 2024
1 parent 04d33a8 commit 709e62f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"scripts": {
"dev": "vite dev",
"build": "vite build",
"postbuild": "mv build/404/index.html build/404.html",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config = {

kit: {
adapter: adapter({
fallback: "404.html",
fallback: "index.html",
}),
paths: {
base: process.env.NODE_ENV === "production" ? process.env.BASE_PATH : "",
Expand Down

0 comments on commit 709e62f

Please sign in to comment.