The walkRoutes (as used by the dynamicRoutes and generate script) currently support URLPattern syntax only, and some of the pattern constructs do not make valid module names, for example: {.:ext}? cannot be added to allow optional extensions.
It would be useful to allow alternative path to URLPattern mappings to allow representation of certain things such as an extension match in an alternative syntax, and also to support Fresh/Next.js compatible path names.
The
walkRoutes
(as used by the dynamicRoutes and generate script) currently support URLPattern syntax only, and some of the pattern constructs do not make valid module names, for example:{.:ext}?
cannot be added to allow optional extensions.It would be useful to allow alternative path to URLPattern mappings to allow representation of certain things such as an extension match in an alternative syntax, and also to support Fresh/Next.js compatible path names.