module.exports = {
    apps: [
      {
        name: 'Infinity',
        exec_mode: 'cluster',
        instances: 1, // Or a number of instances
        script: 'node_modules/next/dist/bin/next',
        args: 'start -p 5000',
        env_local: {
          DB_URI:"mongodb+srv://xxx",
          NEXT_PUBLIC_API_BASE:"https://xxx"
        },
        env_development: {
          DB_URI:"mongodb+srv://xxx",
          NEXT_PUBLIC_API_BASE:"https://xxx"
        },
        env_production: {
          DB_URI:"mongodb+srv://xxx",
          NEXT_PUBLIC_API_BASE:"https://xxx"
        }
      }
    ]
  }