From 126316e94197a03012d37d5a9170c0f854367bfa Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 02 四月 2026 17:18:03 +0800
Subject: [PATCH] fix: 打包配置
---
vue.config.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index c5619f0..cdaf7b2 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -26,6 +26,15 @@
devServer: {
port: 8993,
open: true,
+ // Local websocket proxy (dev only) so local access can reach backend.
+ // Production build uses the real backend address directly (see wsUrl in home/index.vue).
+ proxy: {
+ '/admin': {
+ target: 'http://1.15.17.182:9031',
+ ws: true,
+ changeOrigin: true,
+ },
+ },
},
configureWebpack: {
name: name,
--
Gitblit v1.9.3