added SPA 404 to build

This commit is contained in:
Orion Reed 2023-08-12 21:04:05 +01:00
parent a31cd6746b
commit 563a80c6ba
2 changed files with 3 additions and 3 deletions

View File

@ -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": {

View File

@ -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>
)