Next.js Discord

Discord Forum

Build error page 404 Using Dynamic Route

Unanswered
Blue whiting posted this in #help-forum
Open in Discord
Blue whitingOP
I have an app (CSR) contains dynamic routes, when building the app with the command next build & next export, I get error 404 for all the dynamic pages, if there any solution to make the pages render in demand at the request time using CSR. (v12 Next.js)

5 Replies

Dynamic routes are not yet supported for exported projects using the app router
Blue whitingOP
Soory, for the information I use v12 of next.js
Ooh, then I'm afraid I can't do much other than point you towards the docs for this...

You can find them here: https://nextjs.org/docs/pages/building-your-application/deploying/static-exports
Note that you have to provide more information for people to be able to help you with your issue. Some code and project structure screenshots would be highly beneficial.