dynamic routes on root level
Unanswered
Sweat bee posted this in #help-forum
Sweat beeOP
hey before next 13 with the pages setup we were able to have [slug] in the pages folder and fetch pages dynamically... I use a contentful project and I have a landing page on / and several other pages I want to have on /otherpage1, /otherpage2, ... How can I fetch those sites and generate them into my app?
7 Replies
Sweat beeOP
I was reading this but it only shows how to have dynamic routes in subfolders but noch on the app level...
Sweat beeOP
as a directory? or as a tsx file?
so /app/[...slug]/page.tsx ?
Sweat beeOP
it seems I still have to have a page.tsx file in my app folder... otherwise I get a 404