[dyad] Fixed 404 error by updating i18n middleware matcher - wrote 1 file(s)

This commit is contained in:
[dyad]
2026-01-18 12:44:07 +01:00
parent 63936875d8
commit b4417d8a0b

View File

@@ -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|.*\\..*).*)']
};