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.
- Rest API on express js,
- Admin panel build on react js (pre-rendered),
- 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