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 3000',
        env_local: {
          DB_URI:"mongodb://root:mongodb_str_p%40ss@localhost:27017/Infinity?authSource=admin",
          NEXT_PUBLIC_API_BASE:"http://localhost:3000"
        },
        env_development: {
          DB_URI:"mongodb://root:mongodb_str_p%40ss@localhost:27017/Infinity?authSource=admin",
          NEXT_PUBLIC_API_BASE:"http://localhost:3000"
        },
        env_production: {
          DB_URI:"mongodb://root:mongodb_str_p%40ss@localhost:27017/Infinity?authSource=admin",
          NEXT_PUBLIC_API_BASE:"http://localhost:3000"
        }
      }
    ]
  }