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