// Serves the production build (./dist) with PM2's built-in static server. // Build first: npm run build // pm2 start ecosystem.config.cjs module.exports = { apps: [ { name: "emchess", script: "serve", env: { PM2_SERVE_PATH: "./dist", PM2_SERVE_PORT: 17393, PM2_SERVE_SPA: "true", PM2_SERVE_HOMEPAGE: "/index.html", }, autorestart: true, max_restarts: 10, watch: false, }, ], };