Skip to content

Commit ab9e84f

Browse files
authored
Merge pull request #13018 from ethereum/middleware-root-path
Fix: add explicit matcher for the root path to work on dev mode
2 parents b0444ff + aa35e86 commit ab9e84f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/middleware.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ function detectLocale(acceptLanguage: string | null) {
2323

2424
export const config = {
2525
matcher: [
26+
"/", // explicit matcher for root route
2627
/*
2728
* Match all request paths except for the ones starting with:
2829
* - api (API routes)
2930
* - _next/static (static files)
30-
* - _next/image (image optimization files)
31-
* - favicon.ico (favicon file)
32-
* - .well-known (security files)
3331
*/
3432
"/((?!api|_next/static).*)",
3533
],

0 commit comments

Comments
 (0)