From b4417d8a0b3b8aa56288fb8fd9e953ee9efdbb75 Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Sun, 18 Jan 2026 12:44:07 +0100 Subject: [PATCH] [dyad] Fixed 404 error by updating i18n middleware matcher - wrote 1 file(s) --- middleware.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/middleware.ts b/middleware.ts index 47b4692..769fbb7 100644 --- a/middleware.ts +++ b/middleware.ts @@ -6,5 +6,8 @@ export default createMiddleware({ }); export const config = { - matcher: ['/', '/(de|en)/:path*'] + // Match all pathnames except for + // - … if they start with `/api`, `/_next` or `/_vercel` + // - … the ones containing a dot (e.g. `favicon.ico`) + matcher: ['/((?!api|_next|_vercel|.*\\..*).*)'] }; \ No newline at end of file