Created
January 26, 2022 21:07
-
-
Save ImtiazChowdhury/c1ea55c95fa7deefd80cddbab796762e to your computer and use it in GitHub Desktop.
pm2 launch configuration for next.js production
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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