-
-
Notifications
You must be signed in to change notification settings - Fork 689
Open
Labels
Description
Is your feature request related to a problem? Please describe.
Pants does not support using [ and ] in directory names. This is how Next.js defines "dynamic routes" (https://nextjs.org/docs/app/getting-started/project-structure#dynamic-routes) via directory naming convention. E.g.:
- Path to React component:
app/blog/[slug]/page.tsx - URL:
/blog/my-first-post
As it stands, trying to use this convention will result in Pants erroring out.
Describe the solution you'd like
Allow the use of [ and ] in directory names.
Describe alternatives you've considered
n/a
Additional context
Happy to add this feature but would need some initial guidance on where to start/whether it's feasible.
Reactions are currently unavailable