From 4ea3fb422f1c1af628d948eb3908b6a61f71bbdf Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期四, 07 八月 2025 18:05:17 +0800 Subject: [PATCH] fix: 修改 --- vite.config.ts | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 205656b..8df0b81 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,6 +2,7 @@ import { warpperEnv } from './build'; import { getPluginsList } from './build/plugins'; import { UserConfigExport, ConfigEnv, loadEnv, AliasOptions } from 'vite'; +import dayjs from 'dayjs'; export const projRoot = resolve(__dirname, '..', '..'); export const pkgRoot = resolve(projRoot, 'packages'); @@ -56,7 +57,9 @@ // 鏈嶅姟绔覆鏌� server: { // 鏄惁寮�鍚� https - // https: false, + // https: { + + // }, // 绔彛鍙� port: VITE_PORT, host: '0.0.0.0', @@ -72,7 +75,7 @@ // ws: true, changeOrigin: true, rewrite: (path: string) => { - console.log('path: ', path); + console.log('path: ', path, path.replace(/^\/api/, '')); return path.replace(/^\/api/, ''); }, }, @@ -96,7 +99,12 @@ __INTLIFY_PROD_DEVTOOLS__: false, }, build: { - outDir: `dist/dist-yexingback-${VITE_AppType}-${mode}`, + outDir: + mode === 'staging' + ? `dist/dist-flexJobAdmin-${VITE_AppType}-${mode}` + : `dist/${dayjs().format( + 'YYYY-MM-DD' + )}/dist-flexJobAdmin-${VITE_AppType}-${mode}-${dayjs().format('YYYYMMDD')}`, }, optimizeDeps: { include: [ -- Gitblit v1.9.1