pm2 start for next start with different port
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
If you want to run your server-side NextJS with pm2 and different port, run this:
pm2 start npx --name "nextjs" -- next -p 3003
Don’t follow me. I wrote junks here. Follow me on Twitter instead.