From 801e83de3caae9a44c50c7fd627728dd3a95ec75 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 08 八月 2025 15:12:53 +0800
Subject: [PATCH] feat: 任务

---
 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