pm2 start for next start with different port

Cing Sian Dal
Oct 12, 2021

If you want to run your server-side NextJS with pm2 and different port, run this:

pm2 start npx --name "nextjs" -- next -p 3003

--

--

Cing Sian Dal

Don’t follow me. I wrote junks here. Follow me on Twitter instead.