From 46839aa2b79cdafd021bbaeed8e95b335558c41a Mon Sep 17 00:00:00 2001 From: ihzero Date: Wed, 24 Apr 2024 16:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- vite.config.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index ef312cf..d39fb44 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ -VITE_COMMON_API_PREFIX = /api +VITE_COMMON_API_PREFIX = /api-base VITE_COMMON_API_URL = http://store-manage.hmily.club diff --git a/vite.config.js b/vite.config.js index 79ff0ca..e113540 100644 --- a/vite.config.js +++ b/vite.config.js @@ -15,10 +15,10 @@ export default defineConfig({ }, server: { proxy: { - '/api': { + '/api-base': { target: 'http://store-manage.hmily.club', changeOrigin: true, - rewrite: (path) => path.replace(/^\/api/, '/api'), + rewrite: (path) => path.replace(/^\/api-base/, '/api'), }, } }