From 9ccc8bd3a53160a40cf60f14e5867f6ce9f6c58f Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期五, 26 十二月 2025 16:49:15 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/northglass-erp/vite.config.js |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/northglass-erp/vite.config.js b/north-glass-erp/northglass-erp/vite.config.js
new file mode 100644
index 0000000..5c6d878
--- /dev/null
+++ b/north-glass-erp/northglass-erp/vite.config.js
@@ -0,0 +1,32 @@
+import { fileURLToPath, URL } from 'node:url'
+
+import { defineConfig } from 'vite'
+import vue from '@vitejs/plugin-vue'
+import ReactivityTransform from '@vue-macros/reactivity-transform/vite'
+
+// https://vitejs.dev/config/
+export default defineConfig({
+  plugins: [
+    vue(),
+    ReactivityTransform()
+  ],
+
+  resolve: {
+    alias: {
+      '@': fileURLToPath(new URL('./src', import.meta.url))
+    }
+  },
+  server: {
+    port: 5173,//绔彛鍙�
+    host: true,//ip鍦板潃 鎴� '0.0.0.0' 鎴� "loaclhost"
+    open: false, //鍚姩鍚庢槸鍚﹁嚜鍔ㄦ墦寮�娴忚鍣�
+    https: false, // 鏄惁寮�鍚� https
+    proxy: {
+      '^/api': {
+        target: 'localhost:8080', //鐩爣婧愶紝鐩爣鏈嶅姟鍣紝鐪熷疄璇锋眰鍦板潃
+        changeOrigin: true, //鏀寔璺ㄥ煙
+        rewrite: (path) => path.replace(/^\/api/, "/api"), //閲嶅啓鐪熷疄璺緞,鏇挎崲/api
+      }
+    }
+  }
+})

--
Gitblit v1.8.0