From 59e2386cf9511a10a1415ac3dde6f1cc8741f50f Mon Sep 17 00:00:00 2001 From: Sourabh Sharma Date: Sun, 14 Jul 2024 09:56:02 +0530 Subject: [PATCH] pm2 ecosystem to server 3000 --- ecosystem.config.js | 1 + next.config.mjs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ecosystem.config.js b/ecosystem.config.js index d3fbc42..b98210a 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -4,6 +4,7 @@ module.exports = { name: "aiflavoured", script: "pnpm start", watch: true, + execec_mode: "cluster", env: { NODE_ENV: "production", }, diff --git a/next.config.mjs b/next.config.mjs index 748236c..7428e4d 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -42,6 +42,10 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, + server :{ + port: 3000, + } + // experimental: { // serverComponentsExternalPackages: ['sharp', 'onnxruntime-node'], // },