From c9f174e828fb7a45ed8462f0814a4c7ed78e7b20 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Tue, 10 Mar 2026 18:04:36 +0100 Subject: [PATCH] fix(middleware): exclude /admin from next-intl rewrites --- middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware.ts b/middleware.ts index 3d290f9..aa9e4d4 100644 --- a/middleware.ts +++ b/middleware.ts @@ -15,7 +15,7 @@ export const config = { // Matcher for all pages and internationalized pathnames // excluding api, _next, static files, etc. matcher: [ - "/((?!api|stats|errors|_next|_vercel|.*\\..*).*)", + "/((?!api|admin|stats|errors|_next|_vercel|.*\\..*).*)", "/", "/(de)/:path*", ],