From efc8607848fe39f2d6349451571e32aa4092d8f2 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Thu, 16 Oct 2025 11:21:19 +0800 Subject: [PATCH] chore: init naive config --- apps/web-naive/.env | 2 +- apps/web-naive/vite.config.mts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web-naive/.env b/apps/web-naive/.env index 778a9fa1f..063ed61c1 100644 --- a/apps/web-naive/.env +++ b/apps/web-naive/.env @@ -2,7 +2,7 @@ VITE_APP_TITLE=芋道管理系统 # 应用命名空间,用于缓存、store等功能的前缀,确保隔离 -VITE_APP_NAMESPACE=yudao-vben-antd +VITE_APP_NAMESPACE=yudao-vben-naive # 对store进行加密的密钥,在将store持久化到localStorage时会使用该密钥进行加密 VITE_APP_STORE_SECURE_KEY=please-replace-me-with-your-own-key diff --git a/apps/web-naive/vite.config.mts b/apps/web-naive/vite.config.mts index b6360f1d4..71ae65bb5 100644 --- a/apps/web-naive/vite.config.mts +++ b/apps/web-naive/vite.config.mts @@ -6,11 +6,11 @@ export default defineConfig(async () => { vite: { server: { proxy: { - '/api': { + '/admin-api': { changeOrigin: true, - rewrite: (path) => path.replace(/^\/api/, ''), + rewrite: (path) => path.replace(/^\/admin-api/, ''), // mock代理目标地址 - target: 'http://localhost:5320/api', + target: 'http://localhost:48080/admin-api', ws: true, }, },