fixed middleware exception path

This commit is contained in:
2024-02-16 16:01:58 +01:00
parent d3f9dd3d25
commit 65a7249faa

View File

@@ -18,7 +18,7 @@ const intlMiddleware = createIntlMiddleware({
export const config = { export const config = {
// midleware will NOT be called for paths: '/api/auth/*', '/_next/static/*', '/_next/image*', static files and public pages // midleware will NOT be called for paths: '/api/auth/*', '/_next/static/*', '/_next/image*', static files and public pages
matcher: [ matcher: [
'/((?!api|_next/static|_next/image|.*\\.png$|.*\\.webm$|(en|hr)/(!?policy|terms|login)).*)' '/((?!api|_next/static|_next/image|.*\\.png$|.*\\.webm$|en/policy|hr/policy|en/terms|hr/terms|en/login|hr/login).*)',
], ],
}; };