From 191a2f54ea2aee65c0594af9947aa462cdec1694 Mon Sep 17 00:00:00 2001 From: Yeolyi Date: Sun, 7 Apr 2024 15:47:58 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=B0=B0=ED=8F=AC=20BASE=5FURL=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/common.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apis/common.ts b/apis/common.ts index e6debd0bd..0d49a9ab6 100644 --- a/apis/common.ts +++ b/apis/common.ts @@ -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;