We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f0aa34 commit 63b499cCopy full SHA for 63b499c
src/components/KakaoLoginButton.tsx
@@ -11,7 +11,7 @@ const KAKAO_LOGIN_URL =
11
'https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=' +
12
'438d6de445dd4c2a8c586267854e887c' +
13
'&redirect_uri=' +
14
- 'http://localhost:5173/auth' +
+ `${process.env.NODE_ENV === 'development' ? "http://localhost:5173" : "https://daybook.site"}/auth` +
15
'&scope=';
16
17
const login = async (code: string, setUserId: (id: number) => void) => {
0 commit comments