From f87b4dc346a145a5ec8075950547d1cc7ed9cc85 Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Fri, 27 Jun 2025 15:56:16 +0900 Subject: [PATCH 01/11] =?UTF-8?q?chore:=20env=20=EC=A3=BC=EC=84=9D=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 5 ++--- .env.localhost | 1 + .env.production | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index 7033ee9..054ba65 100644 --- a/.env.development +++ b/.env.development @@ -14,11 +14,9 @@ SESSION_PASSWORD="This application is for mobile field research" NEXT_PUBLIC_API_URL=https://dev.hanasysfield.jp #qsp 로그인 api -# NEXT_PUBLIC_QSP_API_URL=http://121.168.9.37:8080 +NEXT_PUBLIC_QSP_API_URL=http://121.168.9.37:8080 # NEXT_PUBLIC_QSP_API_URL=http://localhost:8110 # NEXT_PUBLIC_QSP_API_URL=http://dev.hanasysfield.jp -# 도메인 설정 전 테스트용 임시 변수 (qsp ip) -NEXT_PUBLIC_QSP_API_URL=http://121.168.9.37:8080 # NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com #1:1문의 api @@ -34,6 +32,7 @@ DB_PASSWORD=aAjmFW12iHKW84l1 DB_DATABASE=qpartners DB_PORT=3306 +#qsp mail server SMTP_HOST=autodiscover.qcells.com SMTP_PORT=25 SMTP_SECURE=false diff --git a/.env.localhost b/.env.localhost index 1fda3d0..128d723 100644 --- a/.env.localhost +++ b/.env.localhost @@ -27,6 +27,7 @@ DB_PASSWORD=aAjmFW12iHKW84l1 DB_DATABASE=qpartners DB_PORT=3306 +#qsp mail server SMTP_HOST=autodiscover.qcells.com SMTP_PORT=25 SMTP_SECURE=false diff --git a/.env.production b/.env.production index 8e708ab..a3e97ad 100644 --- a/.env.production +++ b/.env.production @@ -25,6 +25,7 @@ DB_PASSWORD=aAjmFW12iHKW84l1 DB_DATABASE=qpartners DB_PORT=3306 +#qsp mail server SMTP_HOST=autodiscover.qcells.com SMTP_PORT=25 SMTP_SECURE=true From 28fe1d63884bfc1f50aa8bced34c9c55de40bdec Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Fri, 27 Jun 2025 15:57:40 +0900 Subject: [PATCH 02/11] =?UTF-8?q?chore:=20dev=EB=AA=A8=EB=93=9C=20cors=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/next.config.ts b/next.config.ts index 6733d06..39503a2 100644 --- a/next.config.ts +++ b/next.config.ts @@ -12,6 +12,7 @@ const nextConfig: NextConfig = { fullUrl: true, }, }, + allowedDevOrigins: ['hanasysfield.jp', '*.hanasysfield.jp'], async rewrites() { return [ { From 72dd9119c592f69e89a0cd4721565bcba7112915 Mon Sep 17 00:00:00 2001 From: nalpari Date: Mon, 30 Jun 2025 09:50:06 +0900 Subject: [PATCH 03/11] =?UTF-8?q?chore:=20ecosystem.config.js=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20-=20npm=20=EC=8B=9C=EC=9E=91=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A6=BD=ED=8A=B8=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20=EB=B0=8F=20?= =?UTF-8?q?=EC=9D=B8=EC=8A=A4=ED=84=B4=EC=8A=A4=20=EC=88=98=20=EC=A1=B0?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index a79cb57..27d11c4 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -2,7 +2,10 @@ module.exports = { apps: [ { name: 'on-site-survey', - script: 'node_modules/next/dist/bin/next', + // script: 'node_modules/next/dist/bin/next', + script: 'npm', + args: 'start', + cwd: './', instances: 2, exec_mode: 'cluster', }, From 4e7c559c19e681fd240bfca31bb388e34d8de774 Mon Sep 17 00:00:00 2001 From: nalpari Date: Mon, 30 Jun 2025 09:59:29 +0900 Subject: [PATCH 04/11] =?UTF-8?q?chore:=20ecosystem.config.js=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20-=20npm.cmd=EB=A1=9C=20=EC=8B=9C=EC=9E=91=20?= =?UTF-8?q?=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 27d11c4..db96843 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -3,7 +3,7 @@ module.exports = { { name: 'on-site-survey', // script: 'node_modules/next/dist/bin/next', - script: 'npm', + script: 'npm.cmd', args: 'start', cwd: './', instances: 2, From 42561b64abcbce8cd6305a1e04f9bf44182a570b Mon Sep 17 00:00:00 2001 From: nalpari Date: Mon, 30 Jun 2025 10:15:33 +0900 Subject: [PATCH 05/11] =?UTF-8?q?chore:=20ecosystem.config.js=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20-=20cwd=20=EA=B2=BD=EB=A1=9C=EB=A5=BC=20=EC=A0=88?= =?UTF-8?q?=EB=8C=80=20=EA=B2=BD=EB=A1=9C=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index db96843..2df2fdf 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -5,7 +5,7 @@ module.exports = { // script: 'node_modules/next/dist/bin/next', script: 'npm.cmd', args: 'start', - cwd: './', + cwd: 'C:\\interplug\\onsitesurvey', instances: 2, exec_mode: 'cluster', }, From dece53e6982849bf551aad05dcb4db37f04ecc3c Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Mon, 30 Jun 2025 10:22:59 +0900 Subject: [PATCH 06/11] =?UTF-8?q?chore:=20ecosystem.config.js=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20-=20script=20=EC=9B=90=EB=B3=B5=20=EB=B0=8F=20env?= =?UTF-8?q?=20=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index 2df2fdf..3c9d389 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -2,12 +2,13 @@ module.exports = { apps: [ { name: 'on-site-survey', - // script: 'node_modules/next/dist/bin/next', - script: 'npm.cmd', - args: 'start', - cwd: 'C:\\interplug\\onsitesurvey', + script: 'node_modules/next/dist/bin/next', instances: 2, exec_mode: 'cluster', + env_file: '.env.production', + env: { + NODE_ENV: 'production', + }, }, ], } From 7fcd32df2f25796a858161918f3a30ffe264fff9 Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Mon, 30 Jun 2025 10:41:38 +0900 Subject: [PATCH 07/11] =?UTF-8?q?chore:=20prod=20=EB=B9=8C=EB=93=9C=20?= =?UTF-8?q?=EC=8B=9C=20=EC=8B=A4=ED=96=89=EB=AA=A8=EB=93=9C=20=EB=AA=85?= =?UTF-8?q?=EC=8B=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e309ff6..1b0be83 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": "env-cmd -f .env.production next build", + "build:prod": "set NODE_ENV=production && 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", From decaca10d41ac7b4f53a1e355216b995bca16aee Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Mon, 30 Jun 2025 11:06:12 +0900 Subject: [PATCH 08/11] =?UTF-8?q?chore:=20ecosystem.config.js=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20-=20args=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ecosystem.config.js b/ecosystem.config.js index 3c9d389..303d746 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -3,6 +3,7 @@ module.exports = { { name: 'on-site-survey', script: 'node_modules/next/dist/bin/next', + args: 'start', instances: 2, exec_mode: 'cluster', env_file: '.env.production', From a98bfb5aca01f833c56cd74419e2fc6e850d2b60 Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Mon, 30 Jun 2025 14:01:22 +0900 Subject: [PATCH 09/11] =?UTF-8?q?chore:=20=EC=8B=A4=ED=96=89=20=EC=8A=A4?= =?UTF-8?q?=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=9B=90=EB=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 5 ----- package.json | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) 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", From 2531a41a8a7ba5325cc672eb013f80376e578a4c Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Mon, 30 Jun 2025 14:26:28 +0900 Subject: [PATCH 10/11] =?UTF-8?q?feat:=20footer=EC=97=90=20=EC=8B=A4?= =?UTF-8?q?=ED=96=89=EB=AA=A8=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui/common/Footer.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/ui/common/Footer.tsx b/src/components/ui/common/Footer.tsx index d1e8f0f..22cfba5 100644 --- a/src/components/ui/common/Footer.tsx +++ b/src/components/ui/common/Footer.tsx @@ -1,10 +1,15 @@ 'use client' export default function Footer() { + const runMode = process.env.NEXT_PUBLIC_RUN_MODE || 'error' + return ( <>
-
COPYRIGHT©2025 Hanwha Japan All Rights Reserved
+
+ COPYRIGHT©2025 Hanwha Japan All Rights Reserved + [{runMode.toUpperCase()}] +
) From 44080b5807770fd520c1cdcea53f9b3684586d2d Mon Sep 17 00:00:00 2001 From: Daseul Kim Date: Mon, 30 Jun 2025 14:42:59 +0900 Subject: [PATCH 11/11] =?UTF-8?q?chore:=20ecosystem.config.js=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20-=20args=20=EC=B6=94=EA=B0=80=20=EB=B0=8F=20env=20?= =?UTF-8?q?=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ecosystem.config.js b/ecosystem.config.js index a79cb57..303d746 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -3,8 +3,13 @@ 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', + }, }, ], }