// in the Folder next.js run the cmd below # for development pm2 start npm --name "next" -- run dev # for production npm run build pm2 start npm --name "next" -- start
pm2 start yarn --name "nextjs" --interpreter bash -- start