From 2f4453a6c3827d1528d5106f4b42f9f00f88d5bd Mon Sep 17 00:00:00 2001 From: osdoonhyun <87527736+osdoonhyun@users.noreply.github.com> Date: Tue, 6 Feb 2024 17:42:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=86=8C=EC=85=9C=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20=EB=B0=B0=ED=8F=AC=20url=20=EC=88=98=EC=A0=95=20(#1?= =?UTF-8?q?)=20(#2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selq-client/.env | 9 ++++++--- selq-client/src/components/button/SocialLogInButton.jsx | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/selq-client/.env b/selq-client/.env index d933f91..5b31ddf 100644 --- a/selq-client/.env +++ b/selq-client/.env @@ -5,9 +5,12 @@ REACT_APP_GOOGLE_AUTH_CLIENT_KEY=571403329655-7trhg1moiuk83cdpbgmbaucmaebg4hru.a REACT_APP_DEPLOY_ENV=production -REACT_APP_PROD_BASE_URL=https://selq.store/api - REACT_APP_DEV_BASE_URL=http://localhost:8000/api +REACT_APP_PROD_BASE_URL=https://selq.store/api REACT_APP_ORIGIN_URL=http://localhost:8000 -REACT_APP_GOOGLE_LOGIN_URL=http://localhost:8000/api/auth/google \ No newline at end of file +REACT_APP_PROD_ORIGIN_URL=https://selq.store + +REACT_APP_GOOGLE_LOGIN_URL=http://localhost:8000/api/auth/google +REACT_APP_PROD_GOOGLE_LOGIN_URL=https://selq.store/api/auth/google + diff --git a/selq-client/src/components/button/SocialLogInButton.jsx b/selq-client/src/components/button/SocialLogInButton.jsx index c635f53..01950f2 100644 --- a/selq-client/src/components/button/SocialLogInButton.jsx +++ b/selq-client/src/components/button/SocialLogInButton.jsx @@ -13,14 +13,14 @@ export default function SocialLogInButton() { const socialLogin = () => { const popup = window.open( - process.env.REACT_APP_GOOGLE_LOGIN_URL, + process.env.REACT_APP_PROD_GOOGLE_LOGIN_URL, 'Google Login', POPUP_STRING ); const receiveLoginCompleteMessage = async (event) => { if ( - event.origin === process.env.REACT_APP_ORIGIN_URL && + event.origin === process.env.REACT_APP_PROD_ORIGIN_URL && event.data === 'loginComplete' ) { popup.close();