Start updating paraglide to v2

This commit is contained in:
2025-07-01 20:51:59 +02:00
parent 1114fe7565
commit 051cadca66
12 changed files with 52 additions and 948 deletions

6
middleware.ts Normal file
View File

@ -0,0 +1,6 @@
import { paraglideMiddleware } from "@/paraglide/server";
import { defineMiddleware } from "astro/middleware"
export const onRequest = defineMiddleware((context, next) => {
return paraglideMiddleware(context.request, () => next());
});