Add onRequest middleware function to handle requests in Astro

This commit is contained in:
becarta
2025-05-18 21:38:23 +02:00
parent ea09fdad9f
commit d0a30705e9

View File

@@ -33,4 +33,10 @@ export function handleLanguageRedirects() {
return { return {
incrementRedirectCount incrementRedirectCount
}; };
}
// Add the middleware function that Astro is expecting
export function onRequest(context, next) {
// Pass through by default
return next();
} }