1 parent 87eee07 commit 1b297e9Copy full SHA for 1b297e9
2 files changed
web/package.json
@@ -5,6 +5,7 @@
5
"scripts": {
6
"dev": "vite",
7
"build": "tsc -b && vite build",
8
+ "postbuild": "cp dist/index.html dist/404.html",
9
"lint": "eslint .",
10
"preview": "vite preview"
11
},
web/src/App.tsx
@@ -8,8 +8,8 @@ function App() {
<div className="page">
<main className="content">
<Routes>
+ <Route path="/" element={<Home />} />
12
<Route path="/posts/:slug" element={<Post />} />
- <Route path="*" element={<Home />} />
13
</Routes>
14
</main>
15
</div>
0 commit comments