// PM2 process file for background workers. The web app itself runs on Vercel / `next start`. // npm run worker:start → pm2 start ecosystem.config.cjs // npm run worker:logs → pm2 logs page-analysis-worker module.exports = { apps: [ { name: "page-analysis-worker", script: "scripts/analysis-worker.mjs", cwd: __dirname, autorestart: true, max_restarts: 10, restart_delay: 5000, kill_timeout: 15000, time: true, }, ], };