From 4f3ed18d7c1ccf62f686fd26ed4b59e467d7fbc3 Mon Sep 17 00:00:00 2001 From: sepehr Date: Tue, 28 Apr 2026 21:39:26 +0200 Subject: [PATCH] fix: use non-capturing group in middleware matcher (Next.js 16 build fix) Co-Authored-By: Claude Opus 4.7 --- memento-note/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memento-note/middleware.ts b/memento-note/middleware.ts index 9158636..eb69e1e 100644 --- a/memento-note/middleware.ts +++ b/memento-note/middleware.ts @@ -7,5 +7,5 @@ export default NextAuth(authConfig).auth; export const config = { // https://nextjs.org/docs/app/building-your-application/routing/middleware#matcher - matcher: ['/((?!api|_next/static|_next/image|uploads|.*\.(png|json|svg|ico|jpg|jpeg|webp|woff2?)$).*)'], + matcher: ['/((?!api|_next/static|_next/image|uploads|.*\\.(?:png|json|svg|ico|jpg|jpeg|webp|woff2?)$).*)'], }; \ No newline at end of file