Skip to content

Commit

Permalink
feat: BASE_URL localhost로
Browse files Browse the repository at this point in the history
  • Loading branch information
yeolyi committed Apr 7, 2024
1 parent a5da3df commit 7b97dd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apis/common.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
6 changes: 2 additions & 4 deletions constants/network.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 7b97dd4

Please sign in to comment.