From c4938f6f4e839890b032c75c7a57333a6a9157a9 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 06 十一月 2025 17:06:10 +0800
Subject: [PATCH] 添加新闻功能

---
 web/vite.config.ts |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/web/vite.config.ts b/web/vite.config.ts
index 95ede8f..e44174f 100644
--- a/web/vite.config.ts
+++ b/web/vite.config.ts
@@ -10,14 +10,16 @@
     }
   },
   server: {
+    host: '0.0.0.0',
     port: 3000,
     open: true,
     proxy: {
       '/api': {
-        target: 'http://localhost:8080',
+        // 灏咥PI浠g悊鍥炴湰鍦板悗绔紝渚夸簬瀹屾暣鑱旇皟锛堝悗绔繍琛屽湪 http://127.0.0.1:8080/api锛�
+        target: 'http://127.0.0.1:8080',
         changeOrigin: true,
-        // 涓嶉渶瑕侀噸鍐欒矾寰勶紝鍥犱负鍚庣鐨刢ontext-path灏辨槸/api
-        // rewrite: (path) => path.replace(/^\/api/, '/api')
+        secure: false,
+        // 涓嶉渶瑕侀噸鍐欒矾寰勶紝鍥犱负鍚庣鐨刢ontext-path灏辨槸 /api
       }
     }
   },

--
Gitblit v1.8.0