Skip to content

Commit 6fcd90b

Browse files
committed
refactor: 브라우저 api호출을 프론트가 받아서 백으로 넘기게 설정
1 parent dec14be commit 6fcd90b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export const authAPI = {
233233

234234
// 소셜 로그인
235235
socialLogin: async (provider: 'kakao' | 'github' | 'naver') => {
236-
const apiUrl = import.meta.env.VITE_API_URL || "http://localhost:8080";
236+
const apiUrl = "https://cs25.co.kr" || "http://localhost:8080";
237237
window.location.href = `${apiUrl}/oauth2/authorization/${provider}`;
238238
}
239239
};

src/utils/axiosConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios, { AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
22
import { tokenManager } from './tokenManager';
33

4-
const API_BASE_URL = import.meta.env.VITE_API_URL || 'http://localhost:8080';
4+
const API_BASE_URL = "https://cs25.co.kr" || 'http://localhost:8080';
55

66
// Create axios instance
77
const apiClient: AxiosInstance = axios.create({

0 commit comments

Comments
 (0)