quaint-telephone-89068
02/16/2026, 6:59 PM[ 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.
pantsbuild/pants