chore: middleware

This commit is contained in:
Cory Dransfeldt 2024-11-17 09:08:15 -08:00
parent 45b6e113b5
commit 3ab6f77a69
No known key found for this signature in database
18 changed files with 180 additions and 36 deletions

View file

@ -6,6 +6,11 @@ export default defineConfig({
output: "server",
adapter: cloudflare(),
integrations: [react()],
server: {
middleware: {
onRequest: "./src/middleware.js",
},
},
vite: {
build: {
sourcemap: false,