How to create a React app with dynamic routes?

hi all, question. I want to create a react app with some dynamic routes with variables that load data… so most other pages are fully plasmic, but some are just coded & dynamic. That means I cannot use the optimised production build right? because that would create static files? So should I just run npm run start for production instead?

Hi, not entirely sure what you mean, but you can create static pages as well as server-rendered pages using Next.js.

Assuming you’re using the headless API, you can use the Plasmic catch-all route for pages alongside your coded dynamic pages. LMK if you’re running into issues here or if you have specific questions.