From f29cb1809bcdf4e9f11c904e8e567b08d279c989 Mon Sep 17 00:00:00 2001 From: Geun-Oh Date: Sun, 7 Apr 2024 02:09:01 +0900 Subject: [PATCH] fix: fix kakao login env --- src/components/KakaoLoginButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/KakaoLoginButton.tsx b/src/components/KakaoLoginButton.tsx index 3bbd1fa..0bdd32b 100644 --- a/src/components/KakaoLoginButton.tsx +++ b/src/components/KakaoLoginButton.tsx @@ -11,7 +11,7 @@ const KAKAO_LOGIN_URL = 'https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=' + '438d6de445dd4c2a8c586267854e887c' + '&redirect_uri=' + - `${process.env.NODE_ENV === 'development' ? "http://localhost:5173" : "https://daybook.site"}/auth` + + `${import.meta.env.NODE_ENV === 'development' ? "http://localhost:5173" : "https://daybook.site"}/auth` + '&scope='; const login = async (code: string, setUserId: (id: number) => void) => {