Skip to content

Commit

Permalink
Add config matcher to middleware for improved route handling
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Jan 20, 2025
1 parent b64a920 commit f0bcab9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions site/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ export function middleware(request: NextRequest) {
if (response) return response
return NextResponse.next()
}

export const config = {
matcher: [
'/((?!api|_next/static|_next/image|favicon.ico|sitemap.xml|robots.txt).*)',
]
}

0 comments on commit f0bcab9

Please sign in to comment.