diff --git a/packages/api/src/fetcher.ts b/packages/api/src/fetcher.ts index d6a9d32c..bec341c0 100644 --- a/packages/api/src/fetcher.ts +++ b/packages/api/src/fetcher.ts @@ -5,7 +5,10 @@ import BooltiHTTPError, { isBooltiHTTPError } from './BooltiHTTPError'; import { LOCAL_STORAGE } from './constants'; // TODO 환경 변수로 API 베이스 설정 -const API_URL = 'https://dev.api.boolti.in'; +const API_URL = + window.location.origin === 'https://boolti.in' + ? 'https://api.boolti.in' + : 'https://dev.api.boolti.in'; interface PostRefreshTokenResponse { accessToken: string;