Next.js Discord

Discord Forum

Catch all routes conflict with dynamic routes

Unanswered
Cuban Crocodile posted this in #help-forum
Open in Discord
Cuban CrocodileOP
I want to load dynamic information for pages (even for '/' index pages for different domains)
I have same routes for admin pages for all domains:
site1/admin/products
site2/admin/products

but if i have [...slug].tsx in root, it conflicts with admin/categories/[catgoryId].tsx and i get into slug, not into categoryId.

Is there any way to fix this?

1 Reply

Cuban CrocodileOP
Hello? Anyone?