feat: enhance routing and theme management, add error handling and improve cookie consent styles

This commit is contained in:
2026-05-06 12:59:15 +02:00
parent 8b86350a2d
commit 11c299310c
9 changed files with 164 additions and 55 deletions
+11 -2
View File
@@ -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()
}
]
}
})
}))