module.exports = {
  apps: [
    {
      name: "com-index",
      cwd: __dirname,
      script: "./node_modules/next/dist/bin/next",
      args: "start -p 3000 -H 0.0.0.0",
      exec_mode: "fork",
      instances: 1,
      autorestart: true,
      watch: false,
      max_memory_restart: "512M",
      env: {
        NODE_ENV: "production",
        PORT: "3000",
        HOSTNAME: "0.0.0.0",
      },
    },
  ],
}
