We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83a4a1f commit b151c1dCopy full SHA for b151c1d
1 file changed
src/utils/api.ts
@@ -296,7 +296,10 @@ export const authAPI = {
296
297
// 소셜 로그인
298
socialLogin: async (provider: 'kakao' | 'github' | 'naver') => {
299
- window.location.href = `${apiUrl}/oauth2/authorization/${provider}`;
+ const socialApiUrl = VITE_NODE_ENV === 'prod'
300
+ ? 'https://cs25.co.kr'
301
+ : 'http://localhost:8080';
302
+ window.location.href = `${socialApiUrl}/oauth2/authorization/${provider}`;
303
}
304
};
305
0 commit comments