Skip to content

Commit b151c1d

Browse files
committed
chore: 소셜로그인 API 호출 수정
1 parent 83a4a1f commit b151c1d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/utils/api.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ export const authAPI = {
296296

297297
// 소셜 로그인
298298
socialLogin: async (provider: 'kakao' | 'github' | 'naver') => {
299-
window.location.href = `${apiUrl}/oauth2/authorization/${provider}`;
299+
const socialApiUrl = VITE_NODE_ENV === 'prod'
300+
? 'https://cs25.co.kr'
301+
: 'http://localhost:8080';
302+
window.location.href = `${socialApiUrl}/oauth2/authorization/${provider}`;
300303
}
301304
};
302305

0 commit comments

Comments
 (0)