added SPA 404 to build
This commit is contained in:
parent
a31cd6746b
commit
563a80c6ba
|
|
@ -5,7 +5,7 @@
|
|||
"scripts": {
|
||||
"dev": "vite",
|
||||
"prebuild": "node scripts/prebuild.mjs",
|
||||
"build": "node scripts/prebuild.mjs && vite build",
|
||||
"build": "node scripts/prebuild.mjs && vite build && cp 404.html dist/404.html",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@ export function App() {
|
|||
return (
|
||||
<MantineProvider withGlobalStyles withNormalizeCSS theme={theme}>
|
||||
<Box mb="xl">
|
||||
<SubfolderRouter>
|
||||
<Router>
|
||||
<Home path="/" />
|
||||
<Posts path="/posts" />
|
||||
<Post path="/posts/:title" />
|
||||
<Stream path="/stream" />
|
||||
<NotFound default />
|
||||
</SubfolderRouter>
|
||||
</Router>
|
||||
</Box>
|
||||
</MantineProvider>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue