You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: regexp removed from middleware config (#85343)
Closes#84307
It seems that the `regexp` prop is not currently supported in the
matcher object
(./packages/next/src/build/segment-config/middleware/middleware-config.ts
→ MiddlewareMatcherInputSchema). Adjusting docs accordingly.
---------
Co-authored-by: devjiwonchoi <devjiwonchoi@gmail.com>
Copy file name to clipboardExpand all lines: docs/01-app/03-api-reference/03-file-conventions/proxy.mdx
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,6 @@ Additionally, the `matcher` option supports complex path specifications through
85
85
The `matcher` option accepts an array of objects with the following keys:
86
86
87
87
-`source`: The path or pattern used to match the request paths. It can be a string for direct path matching or a pattern for more complex matching.
88
-
-`regexp` (optional): A regular expression string that fine-tunes the matching based on the source. It provides additional control over which paths are included or excluded.
89
88
-`locale` (optional): A boolean that, when set to `false`, ignores locale-based routing in path matching.
90
89
-`has` (optional): Specifies conditions based on the presence of specific request elements such as headers, query parameters, or cookies.
91
90
-`missing` (optional): Focuses on conditions where certain request elements are absent, like missing headers or cookies.
@@ -94,8 +93,7 @@ The `matcher` option accepts an array of objects with the following keys:
0 commit comments