diff --git a/frontend/package.json b/frontend/package.json index 0de5611..06e3be3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -5,7 +5,7 @@ "scripts": { "dev": "next dev", "build": "next build", - "start": "next start -p ${PORT:-8502}", + "start": "node .next/standalone/server.js", "lint": "next lint" }, "dependencies": { diff --git a/supervisord.conf b/supervisord.conf index 14bbb64..6bc872b 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -26,7 +26,7 @@ autostart=true startsecs=3 [program:frontend] -command=bash -c "/app/scripts/wait-for-api.sh && npm run start" +command=bash -c "/app/scripts/wait-for-api.sh && node server.js" directory=/app/frontend environment=NODE_ENV="production",PORT="8502" passenv=API_URL,NEXT_PUBLIC_API_URL,INTERNAL_API_URL diff --git a/supervisord.single.conf b/supervisord.single.conf index 345d37b..786dbbf 100644 --- a/supervisord.single.conf +++ b/supervisord.single.conf @@ -38,7 +38,7 @@ autostart=true startsecs=3 [program:frontend] -command=bash -c "/app/scripts/wait-for-api.sh && npm run start" +command=bash -c "/app/scripts/wait-for-api.sh && node server.js" directory=/app/frontend environment=NODE_ENV="production",PORT="8502" passenv=API_URL,NEXT_PUBLIC_API_URL,INTERNAL_API_URL