From d0a30705e907463d636f8da9a6b23757933fd94d Mon Sep 17 00:00:00 2001 From: becarta Date: Sun, 18 May 2025 21:38:23 +0200 Subject: [PATCH] Add onRequest middleware function to handle requests in Astro --- src/middleware.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/middleware.js b/src/middleware.js index 8ac3b53..00b78a4 100644 --- a/src/middleware.js +++ b/src/middleware.js @@ -33,4 +33,10 @@ export function handleLanguageRedirects() { return { incrementRedirectCount }; +} + +// Add the middleware function that Astro is expecting +export function onRequest(context, next) { + // Pass through by default + return next(); } \ No newline at end of file