From c4d318d89b9f6f9eb8d11f738184220396a4ffc8 Mon Sep 17 00:00:00 2001 From: 2paperstar Date: Thu, 6 Jun 2024 03:50:53 +0900 Subject: [PATCH] fix: production api --- src/api/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 130d52a..a233614 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,7 +1,7 @@ import axios from 'axios'; const api = axios.create({ - baseURL: '/local', + baseURL: import.meta.env.DEV ? '/local' : 'https://api.check-out.paperst.ar', }); api.interceptors.request.use((config) => { @@ -35,7 +35,7 @@ api.interceptors.response.use( } } return Promise.reject(error); - }, + } ); export default api;