From 82cdb2a7557b1418cbd986b9615c2e7b439e0bbb Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Wed, 28 May 2025 14:43:10 +0900 Subject: [PATCH] chore: revert QSP API URL to previous configuration in Login component --- .env.development | 4 ++-- .env.localhost | 4 ++-- src/components/Login.tsx | 6 +----- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.env.development b/.env.development index 2c96d85..28a0774 100644 --- a/.env.development +++ b/.env.development @@ -5,8 +5,8 @@ NEXT_PUBLIC_RUN_MODE=development NEXT_PUBLIC_API_URL=http://172.30.1.65:3000 #qsp 로그인 api -# NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120 -NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com +NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120 +# NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com #1:1문의 api NEXT_PUBLIC_INQUIRY_API_URL=http://172.23.4.129:8110 diff --git a/.env.localhost b/.env.localhost index a7ceb68..8bee910 100644 --- a/.env.localhost +++ b/.env.localhost @@ -5,8 +5,8 @@ NEXT_PUBLIC_RUN_MODE=local NEXT_PUBLIC_API_URL=http://172.30.1.65:3000 #qsp 로그인 api -# NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120 -NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com +NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120 +# NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com #1:1문의 api NEXT_PUBLIC_INQUIRY_API_URL=http://172.23.4.129:8110 diff --git a/src/components/Login.tsx b/src/components/Login.tsx index 6c60b99..4a77ad6 100644 --- a/src/components/Login.tsx +++ b/src/components/Login.tsx @@ -79,11 +79,7 @@ export default function Login() { url = '/api/partner' } - // const { data } = await axiosInstance('').post(`${url}`, { - // loginId: account.loginId, - // pwd: account.pwd, - // }) - const { data } = await axiosInstance(`${process.env.NEXT_PUBLIC_QSP_API_URL}`).post(`/api/user/login`, { + const { data } = await axiosInstance('').post(`${url}`, { loginId: account.loginId, pwd: account.pwd, })