module.exports = {
  apps: [
    {
      name: "novel",
      script: "./node_modules/.bin/next",
      args: "start",
      instances: "max",
      env: {
        NODE_ENV: "production",
        NODE_PORT: 3001,
        PORT: 3001,
      },
      watch: false,
      merge_logs: true,
      exec_mode: "cluster",
      max_memory_restart: "3G",
      instance_var: "NODE_APP_INSTANCE",
      restart_delay: 1000,
    },
  ],
};
