Next.js Discord

Discord Forum

Serve "many" nextjs server

Unanswered
Ninhache posted this in #help-forum
Open in Discord
Hello,

I'm currently exploring various strategies for hosting multiple Next.js websites (and other services..) within a single environment.
Originally, I considered using a reverse proxy. However, this approach led to complications, particularly with application routing causing disruptions in the setup.

I'm seeking effective solutions or best practices to achieve the following :
- Redirect domain/website to the first website, hosted on port 3000
- Redirect domain/example to a second instance on port 3001....
- and so on for additional routes

Ultimately, my primary goal is to ensure that these multiple servers are accessible via specific routes.

The method of implementation is flexible as long as it meets this requirement.

Thank you!

0 Replies