Add onRequest middleware function to handle requests in Astro
This commit is contained in:
@@ -34,3 +34,9 @@ export function handleLanguageRedirects() {
|
|||||||
incrementRedirectCount
|
incrementRedirectCount
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add the middleware function that Astro is expecting
|
||||||
|
export function onRequest(context, next) {
|
||||||
|
// Pass through by default
|
||||||
|
return next();
|
||||||
|
}
|
Reference in New Issue
Block a user