Skip to content

Commit

Permalink
feat: 배포 BASE_URL 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
yeolyi committed Apr 7, 2024
1 parent 98c27ca commit 191a2f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apis/common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export const BASE_URL = 'https://cse-dev-waffle.bacchus.io/api/v1';
export const BASE_URL =
process.env.NODE_ENV === 'development'
? 'https://cse-dev-waffle.bacchus.io/api/v1'
: 'https://csereal-prod.bacchus.io/api/v1';

export const checkError = (response: Response) => {
if (response.ok) return;
Expand Down

0 comments on commit 191a2f5

Please sign in to comment.