Skip to content

Commit 63b499c

Browse files
committed
feat: env setting
1 parent 7f0aa34 commit 63b499c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/KakaoLoginButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const KAKAO_LOGIN_URL =
1111
'https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=' +
1212
'438d6de445dd4c2a8c586267854e887c' +
1313
'&redirect_uri=' +
14-
'http://localhost:5173/auth' +
14+
`${process.env.NODE_ENV === 'development' ? "http://localhost:5173" : "https://daybook.site"}/auth` +
1515
'&scope=';
1616

1717
const login = async (code: string, setUserId: (id: number) => void) => {

0 commit comments

Comments
 (0)