From 8a1313a9647a25ff9ff4bceb03e7345762750922 Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Mon, 2 Jun 2025 10:11:22 +0900 Subject: [PATCH 1/4] chore: update environment configuration files to include EMAIL_TITLE_PREFIX - Added EMAIL_TITLE_PREFIX variable to .env.development for system test identification. - Cleared EMAIL_TITLE_PREFIX in .env.localhost and .env.production for consistency across environments. --- .env.development | 1 + .env.localhost | 2 ++ .env.production | 2 ++ 3 files changed, 5 insertions(+) diff --git a/.env.development b/.env.development index d821f10..d4d77fb 100644 --- a/.env.development +++ b/.env.development @@ -11,6 +11,7 @@ NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120 #1:1문의 api NEXT_PUBLIC_INQUIRY_API_URL=https://jp-dev.qsalesplatform.com +EMAIL_TITLE_PREFIX=(System Test) #QPARTNER 로그인 api DB_HOST=202.218.61.226 diff --git a/.env.localhost b/.env.localhost index 1480c7a..eb993b5 100644 --- a/.env.localhost +++ b/.env.localhost @@ -11,6 +11,8 @@ NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120 #1:1문의 api NEXT_PUBLIC_INQUIRY_API_URL=https://jp-dev.qsalesplatform.com +EMAIL_TITLE_PREFIX= + #QPARTNER 로그인 api DB_HOST=202.218.61.226 DB_USER=readonly diff --git a/.env.production b/.env.production index fc11d33..1835dc5 100644 --- a/.env.production +++ b/.env.production @@ -9,6 +9,8 @@ NEXT_PUBLIC_QSP_API_URL=https://jp.qsalesplatform.com #1:1문의 api NEXT_PUBLIC_INQUIRY_API_URL=http://172.23.4.129:8110 +EMAIL_TITLE_PREFIX= + #QPARTNER 로그인 api DB_HOST=202.218.61.226 DB_USER=readonly From ca45c68b9dc47a77c6ce5bab877aed3b12dbcf1b Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Mon, 2 Jun 2025 10:15:50 +0900 Subject: [PATCH 2/4] refactor: update builderNm field in session management - Set builderNm in session and response payload based on user data for improved session tracking. - Ensured consistency in session management structures. --- src/app/api/auth/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/api/auth/route.ts b/src/app/api/auth/route.ts index bb64208..2ad1416 100644 --- a/src/app/api/auth/route.ts +++ b/src/app/api/auth/route.ts @@ -57,7 +57,7 @@ export async function POST(request: Request) { session.storeLvl = result.data.data.storeLvl session.custCd = result.data.data.custCd session.builderNo = result.data.data.builderNo - session.builderNm = '' + session.builderNm = result.data.data.builderNm session.isLoggedIn = true if (result.data.data.userId === 'T01') { @@ -105,7 +105,7 @@ export async function POST(request: Request) { STORE_LVL: result.data.data.storeLvl, CUST_CD: result.data.data.custCd, BUILDER_NO: result.data.data.builderNo, - BUILDER_NM: '', + BUILDER_NM: result.data.data.builderNm, IS_LOGGED_IN: true, ROLE: '', } From 0b4a50e78a123cf482aef61ebebd416b6e7142ec Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Mon, 2 Jun 2025 13:03:32 +0900 Subject: [PATCH 3/4] chore: add ecosystem configuration for on-site survey application - Introduced a new configuration file for managing the on-site survey application. - Defined application settings including script execution and instance management. --- dev.ecosystem.comfig.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dev.ecosystem.comfig.js diff --git a/dev.ecosystem.comfig.js b/dev.ecosystem.comfig.js new file mode 100644 index 0000000..cf7d386 --- /dev/null +++ b/dev.ecosystem.comfig.js @@ -0,0 +1,10 @@ +module.exports = { + apps: [ + { + name: 'on-site-survey', + script: 'node_modules/next/dist/bin/next', + instances: 1, + exec_mode: 'fork', + }, + ], +} From e29082bbf586622804b2474891455138e1e24f0e Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Mon, 2 Jun 2025 14:37:39 +0900 Subject: [PATCH 4/4] chore: update QSP API URL in development environment - Changed NEXT_PUBLIC_QSP_API_URL to point to a new server address for local development. - Ensured consistency in API endpoint configuration for development purposes. --- .env.development | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.development b/.env.development index d4d77fb..919d6f9 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ NEXT_PUBLIC_RUN_MODE=development NEXT_PUBLIC_API_URL=http://localhost:3000 #qsp 로그인 api -NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120 +NEXT_PUBLIC_QSP_API_URL=http://121.168.9.37:8080 # NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com #1:1문의 api