# for development pm2 start npm --name "next" -- run dev # for production npm run build pm2 start npm --name "next" -- start "scripts": { "start": "node ./node_modules/.bin/pm2 start app.js -i max --attach" }