module.exports = { apps: [ { name: "bama", script: "node_modules/next/dist/bin/next", args: "start -p 3000", cwd: "/var/www/bama", instances: 1, autorestart: true, max_memory_restart: "1G", env: { NODE_ENV: "production" }, }, { name: "bama-crawl", script: "scripts/cron-crawl.cjs", // Every 15 min: crawl the BAM queries + (quiet days) the associated wires, // warm the reader cache. No LLM anywhere in this stack. cron_restart: "*/15 * * * *", autorestart: false, cwd: "/var/www/bama", env: { NODE_ENV: "production", PORT: "3000" }, }, ], };