Skip to content
Discussion options

You must be logged in to vote

Hello!

Yes they are regexp, you can find the related code here: https://github.com/vercel/next.js/blob/canary/packages/next/lib/load-custom-routes.ts#L360

It's using matchAll.

Value is string | undefined.
If it's a string, it'll be used as a regex to capture a specific part of the value.
If it's not defined, it'll match anything.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nickrttn
Comment options

Answer selected by nickrttn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants