Skip to content

Commit

Permalink
fix: update middleware matches to fix the initial animation (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
brolag authored Oct 30, 2024
1 parent 8797b78 commit 5c5bc72
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion apps/web/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,16 @@ export async function middleware(request: NextRequest) {
}

export const config = {
matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)"],
matcher: [
/*
* Match all request paths except for the ones starting with:
* - api (API routes)
* - _next/static (static files)
* - _next/image (image optimization files)
* - _next/data (data files)
* - favicon.ico (favicon file)
* - public files (including images)
*/
"/((?!api|_next/static|_next/image|_next/data|favicon.ico|.*\\.(?:jpg|jpeg|gif|png|svg|ico)).*)",
],
};

0 comments on commit 5c5bc72

Please sign in to comment.