diff --git a/apis/common.ts b/apis/common.ts index eb5abe59b..e7d72760f 100644 --- a/apis/common.ts +++ b/apis/common.ts @@ -1,7 +1,7 @@ export const BASE_URL = process.env.NODE_ENV === 'development' ? 'https://cse-dev-waffle.bacchus.io/api/v1' - : 'https://cse.snu.ac.kr/api/v1'; + : 'localhost:8080'; export const checkError = (response: Response) => { if (response.ok) return; diff --git a/constants/network.ts b/constants/network.ts index 0bd68065d..031a2b936 100644 --- a/constants/network.ts +++ b/constants/network.ts @@ -1,9 +1,7 @@ -import { BASE_URL } from '@/apis/common'; - export const COOKIE_SESSION_ID = 'JSESSIONID'; -export const LOGIN_URL = BASE_URL + '/login'; -export const LOGOUT_URL = BASE_URL + '/logout'; +export const LOGIN_URL = 'https://cse.snu.ac.kr/api/v1/login'; +export const LOGOUT_URL = 'https://cse.snu.ac.kr/api/v1/logout'; // TODO: fine-grained cache로 바꾸기 export const FETCH_TAG_IMPORANT = 'important';