How to properly configure and deploy mern and next js app

I was working on a MERN application. But for server-side rendering, I included the next js but before adding next js my api on express js was completed so now my project carries three different apps and running on three ports with following structure.

  1. Rest API on express js,
  2. Admin panel build on react js (pre-rendered),
  3. Public website on next js(ssr).

Now I can’t figure out how can I configure these to host this as a single project on shared hosting/heroku on a single domain

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.