feat: enhance routing and theme management, add error handling and improve cookie consent styles
This commit is contained in:
+11
-2
@@ -1,9 +1,18 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
|
||||
export default defineConfig({
|
||||
export default defineConfig(() => ({
|
||||
plugins: [svelte()],
|
||||
server: {
|
||||
port: 5173,
|
||||
middlewares: [
|
||||
(req, res, next) => {
|
||||
if (req.url === '/' || req.url.match(/\.\w+$/) || req.url.includes('/public/')) {
|
||||
return next()
|
||||
}
|
||||
req.url = '/'
|
||||
next()
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user