Skip to content

The page component must have a unique name across all routes #2986

Answered by beerose
zanami asked this question in General
Discussion options

You must be logged in to vote

I guess unique names are required just for the Route Manifest to make sense, right?

Yes, that's right.

Is there a better way to do the same, like [[catchall]] routes maybe?

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zanami
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants