From ae94ec741a29ed869c75c0f6e83798a8f2ce01d1 Mon Sep 17 00:00:00 2001 From: yinbangzhong <zhongbangyin@126.com> Date: 星期二, 06 八月 2024 16:41:07 +0800 Subject: [PATCH] 打包配置 --- 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