Add onRequest middleware function to handle requests in Astro
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
Reference in New Issue
Block a user