diff --git a/ecosystem.config.js b/ecosystem.config.js index 303d746..a79cb57 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -3,13 +3,8 @@ module.exports = { { name: 'on-site-survey', script: 'node_modules/next/dist/bin/next', - args: 'start', instances: 2, exec_mode: 'cluster', - env_file: '.env.production', - env: { - NODE_ENV: 'production', - }, }, ], } diff --git a/package.json b/package.json index 1b0be83..e309ff6 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "start": "next start", "build:local": "env-cmd -f .env.localhost next build", "build:dev": "env-cmd -f .env.development next build", - "build:prod": "set NODE_ENV=production && env-cmd -f .env.production next build", + "build:prod": "env-cmd -f .env.production next build", "start:local": "env-cmd -f .env.localhost next start", "start:dev": "env-cmd -f .env.development next start", "start:prod": "env-cmd -f .env.production next start",