-
Please explain why? NextJS has no such requirement, AFAIK I'm trying to make a similar routing scheme as Vercel Commerce has search.tsx They are reusing the same code in every page like this
I guess unique names are required just for the Route Manifest to make sense, right? Is there a better way to do the same, like [[catchall]] routes maybe? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, that's right.
Yes, you could catch all. In you case, you could have More here: https://blitzjs.com/docs/routing#optional-catch-all-routes |
Beta Was this translation helpful? Give feedback.
Yes, that's right.
Yes, you could catch all. In you case, you could have
app/pages/search/[[...slug]].tsx
and that will match /search, /search/[category], /search/designers/[name], and so on.More here: https://blitzjs.com/docs/routing#optional-catch-all-routes