nodejh
3/6/2018 - 1:54 PM

how can I use next in pm2?

https://github.com/zeit/next.js/issues/109

# for development
pm2 start npm --name "next" -- run dev

# for production
npm run build
pm2 start npm --name "next" -- start