Skip to content

Commit

Permalink
Add 404 fallback to spa index
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaBobs authored Jan 8, 2024
1 parent ff6f524 commit e0d2b3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"build": "tsc && vite build && cp dist/index.html dist/404.html",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
Expand All @@ -29,4 +29,4 @@
"typescript": "5.3.2",
"vite": "5.0.5"
}
}
}

0 comments on commit e0d2b3f

Please sign in to comment.