From 58b542e20ea08f8650c99a7367bbb98d52020c21 Mon Sep 17 00:00:00 2001 From: yeynii Date: Thu, 16 Nov 2023 14:16:47 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20PROD=20=EC=9D=BC=20=EB=95=8C=20api=20BAS?= =?UTF-8?q?E=5FURL=20=EC=9D=84=20be=20end-point=EB=A1=9C=20=EC=A7=80?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apis/index.ts b/src/apis/index.ts index 55772ec..f89b307 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -2,8 +2,10 @@ import axios from 'axios'; import { apiGenerator } from '@/apis/apiGenerator'; +const BASE_URL = import.meta.env.PROD ? import.meta.env.VITE_API_URL : '/api'; + const instance = axios.create({ - baseURL: '/api', + baseURL: BASE_URL, timeout: 30000, });