const path = require("node:path"); const root = process.env.DEPLOY_ROOT; if (!root || !path.isAbsolute(root)) throw new Error("DEPLOY_ROOT must be absolute"); module.exports = { apps: [ { name: "personal-brand-api", cwd: path.join(root, "current/apps/api"), script: "dist/main.js", interpreter: process.execPath, node_args: ["--env-file=" + path.join(root, "shared/.env.production")], env: { NODE_ENV: "production" }, autorestart: true, restart_delay: 2000, max_restarts: 10, time: true, }, ], };