From ab967ca32557c9535a4508468bf855a80e34809d Mon Sep 17 00:00:00 2001 From: zhangxiao <898441624@qq.com> Date: 星期二, 06 八月 2024 19:24:37 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/flow_web --- config/vite.config.prod.ts | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/config/vite.config.prod.ts b/config/vite.config.prod.ts index 79a8864..9083aae 100644 --- a/config/vite.config.prod.ts +++ b/config/vite.config.prod.ts @@ -14,6 +14,29 @@ configArcoResolverPlugin(), configImageminPlugin(), ], + server: { + open: true, // 椤圭洰鍚姩鍚庯紝鑷姩鎵撳紑 + fs: { + strict: true, + }, + proxy: { + '/base': { + target: 'http://192.168.20.116:8089', + changeOrigin: true, + ws: true, + }, + '/api': { + target: 'http://192.168.20.116:8089', + changeOrigin: true, + ws: true, + }, + '/api/v1': { + target: 'http://192.168.20.116:8089', + changeOrigin: true, + ws: true, + }, + }, + }, build: { rollupOptions: { output: { -- Gitblit v1.8.0