Skip to content

Instantly share code, notes, and snippets.

@ImtiazChowdhury
Created January 26, 2022 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ImtiazChowdhury/c1ea55c95fa7deefd80cddbab796762e to your computer and use it in GitHub Desktop.
Save ImtiazChowdhury/c1ea55c95fa7deefd80cddbab796762e to your computer and use it in GitHub Desktop.
pm2 launch configuration for next.js production
module.exports = {
apps: [{
script: "node_modules/next/dist/bin/next",
args: "start",
exec_mode: "cluster",
instances: 2
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment