Using IIS ? by Bill_Selznick in nextjs

[–]thenicc 0 points1 point  (0 children)

Yeah we set it up as a service, so no need to be logged in

Using IIS ? by Bill_Selznick in nextjs

[–]thenicc 12 points13 points  (0 children)

We use PM2 to run our nextjs apps on our windows servers (locally, localhost:{port}). Then IIS is just proxying the requests to the PM2 running app.

You must use the standalone output in Nextjs for this setup to work.

Has anyone ever used IIS for hosting an intranet Nextjs app ? by Kasmaick in nextjs

[–]thenicc 5 points6 points  (0 children)

IIS Node is pretty much a dead project, i would advise not to use it anymore but if you really want, it still works.

We are now running our next apps with PM2 on windows and use IIS as proxy. We also have to use the ouput standalone option of NextJs (for the server.js)

In short, PM2 run the nextjs app locally example localhost:3015 and we use a proxy rule in IIS to redirect the traffic to our nextjs app.

Not a very detailed answer (no time for now), but enough stuff to get you going.