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();