Dynamically generated Routes in Next
Hello! I have an existing React application using react router, where i create the routes dynamically using a response i get from a backend and then use the application as usual. I was recently assigned to migrate this to a Next app using the app router because of the react server components which we could really benefit from. Is there any way to generate routes dynamically in next. And no i'm not talking about the [slug] or [...slug] i want to create actual routes like /users or /products dynamically.
I want to recreate this in Next, question in this case is an array of paths i get from a backend call in json.
0 Replies