Skip to content

Commit

Permalink
Merge pull request #13018 from ethereum/middleware-root-path
Browse files Browse the repository at this point in the history
Fix: add explicit matcher for the root path to work on dev mode
  • Loading branch information
pettinarip authored May 22, 2024
2 parents b0444ff + aa35e86 commit ab9e84f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ function detectLocale(acceptLanguage: string | null) {

export const config = {
matcher: [
"/", // explicit matcher for root route
/*
* Match all request paths except for the ones starting with:
* - api (API routes)
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon.ico (favicon file)
* - .well-known (security files)
*/
"/((?!api|_next/static).*)",
],
Expand Down

0 comments on commit ab9e84f

Please sign in to comment.