From 8adc78206030a435e5d7cd15447857d55f36ce8a Mon Sep 17 00:00:00 2001 From: Tomasz Subik Date: Mon, 4 Nov 2024 18:32:55 +0100 Subject: [PATCH] fix middleware to not make to return all pages html when doing client redirects - weird --- middleware.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/middleware.js b/middleware.js index 0d8cb1f8..c336c853 100644 --- a/middleware.js +++ b/middleware.js @@ -8,4 +8,9 @@ export function middleware(req) { new URL(`/${locale}${req.nextUrl.pathname}${req.nextUrl.search}`, req.url) ) } + return NextResponse.next(); +} + +export const config = { + matcher: '/reset-password', }