ecosystem.config.js
module.exports = {
apps: [{
name: 'hub-command',
script: 'node_modules/.bin/next',
args: 'start -p 7480',
cwd: '/root/Projects/Hub',
env: { NODE_ENV: 'production', PORT: '7480' },
}],
};