Skip to content

Commit aa35e86

Browse files
committed
fix: add explicit matcher for the root path to work on dev mode
1 parent 9d69741 commit aa35e86

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)