module.exports = { apps: [ { name: "write-server", script: "node_modules/.bin/next", args: "start", cwd: "./", instances: 1, exec_mode: "fork", autorestart: true, watch: false, max_memory_restart: "1G", env: { NODE_ENV: "production", PORT: 8016, }, env_production: { NODE_ENV: "production", PORT: 8016, }, error_file: "./logs/pm2-error.log", out_file: "./logs/pm2-out.log", log_date_format: "YYYY-MM-DD HH:mm:ss Z", merge_logs: true, log_type: "json", }, ], };