Skip to content

Commit

Permalink
fix: middleware regex (#1545)
Browse files Browse the repository at this point in the history
  • Loading branch information
oktapodia authored Dec 2, 2024
1 parent 80777ba commit 008af4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ export function middleware(request: NextRequest) {

// Applies this middleware only to specific paths
export const config = {
matcher: '/((?!api|static|.*\\..*|_next).*)',
matcher:
'/((?!api|static|_next|favicon\\.ico|.*\\.(?:png|jp?eg|gif|webp|svg|ico|riv)).*)',
};

0 comments on commit 008af4e

Please sign in to comment.