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'), }, } }