module.exports = {
  apps: [{
    name: 'back',
    script: 'bun',
    args: 'x next start -H 0.0.0.0 -p 3010',
    cwd: './',
    instances: 1,
    exec_mode: 'cluster',
    autorestart: true,
    watch: false,
    max_memory_restart: '1G',
    env: {
      NODE_ENV: 'production',
      PORT: 3010
    },
    error_file: './logs/err.log',
    out_file: './logs/out.log',
    log_file: './logs/combined.log',
    time: true
  }]
}
