Skip to content

Commit 814ba92

Browse files
committed
refactor: refactor the matcher
1 parent 7336525 commit 814ba92

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/middleware.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,5 @@ import { routing } from './navigation';
44
export const middleware = createMiddleware(routing);
55

66
export const config = {
7-
matcher: [
8-
'/',
9-
'/(en)/:path*',
10-
/*
11-
* Match all request paths except for the ones starting with:
12-
* - api (API routes)
13-
* - _next/static (static files)
14-
* - _next/image (image optimization files)
15-
* - favicon.ico, sitemap.xml, robots.txt (metadata files)
16-
*/
17-
'/((?!api|_next/static|_next/image|logos|favicon.ico|sitemap.xml|robots.txt|.*\\..*).*)',
18-
],
7+
matcher: ['/((?!api|_next|.*\\..*).*)'],
198
};

0 commit comments

Comments
 (0)