From 28d58849a06bf4b600805ad5772353a66ca979bd Mon Sep 17 00:00:00 2001 From: ckt1031 <65409152+ckt1031@users.noreply.github.com> Date: Sun, 9 Jul 2023 21:12:56 +0800 Subject: [PATCH] fix: environmental issue --- web/src/helpers/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/helpers/api.js b/web/src/helpers/api.js index 3a8d1ed3..4dfabefa 100644 --- a/web/src/helpers/api.js +++ b/web/src/helpers/api.js @@ -2,7 +2,7 @@ import { showError } from './utils'; import axios from 'axios'; export const API = axios.create({ - baseURL: 'http://localhost:3000', + baseURL: import.meta.env.REACT_APP_SERVER ? import.meta.env.REACT_APP_SERVER : '', }); API.interceptors.response.use(