Skip to content

Commit

Permalink
BASE_URL 분기처리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yeolyi committed Sep 21, 2023
1 parent 3913e84 commit 08272ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apis/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { objToQueryString } from '@/utils/convertParams';

// export const BASE_URL = 'https://cse-dev-waffle.bacchus.io/api/v1';
export const BASE_URL = 'http://localhost:8080/api/v1';
export const BASE_URL =
process.env.NODE_ENV === 'production'
? 'https://cse-dev-waffle.bacchus.io/api/v1'
: 'http://localhost:8080/api/v1';

export const getRequest = async <T = unknown>(
url: string,
Expand Down

0 comments on commit 08272ee

Please sign in to comment.