Skip to content

Commit f0bcab9

Browse files
committed
Add config matcher to middleware for improved route handling
1 parent b64a920 commit f0bcab9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

site/middleware.ts

+6
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ export function middleware(request: NextRequest) {
77
if (response) return response
88
return NextResponse.next()
99
}
10+
11+
export const config = {
12+
matcher: [
13+
'/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)',
14+
]
15+
}

0 commit comments

Comments
 (0)