Dynamic Routing with page inclusion?
Unanswered
Cape lion posted this in #help-forum
Cape lionOP
I have an external API that's controlling my routing.
I have a catchall route called [[slug]].
I send the full slug to this external API. This external API decides if it's a product page, a category page or a CMS page.
I kinda want to keep my 3 types of pages in separate page.tsx files, so I can separate out the metadata, and the page content itself.
Is this possible? Or do I need to have 1 page.tsx under the catchall which dynamically renders components AND also handles all the metadata for all 3 types?
I have a catchall route called [[slug]].
I send the full slug to this external API. This external API decides if it's a product page, a category page or a CMS page.
I kinda want to keep my 3 types of pages in separate page.tsx files, so I can separate out the metadata, and the page content itself.
Is this possible? Or do I need to have 1 page.tsx under the catchall which dynamically renders components AND also handles all the metadata for all 3 types?