Skip to content

Commit

Permalink
fix: fix kakao login env
Browse files Browse the repository at this point in the history
  • Loading branch information
Geun-Oh committed Apr 6, 2024
1 parent 3c2a778 commit f29cb18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/KakaoLoginButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit f29cb18

Please sign in to comment.