module.exports = { apps: [ { name: 'DDAC-Nuxt4', // 请替换为您的应用名称 script: '.output/server/index.mjs', // Nuxt 4 构建后的正确入口文件 instances: 'max', // 自动根据 CPU 核心数启动实例 exec_mode: 'cluster', // 集群模式,实现负载均衡 watch: false, // 生产环境关闭文件监听 env: { NITRO_PORT: 3333, // 设置 Nitro 服务器端口 NITRO_HOST: '0.0.0.0', // 允许外部访问 NODE_ENV: 'production' } } ] }