From fba407c1bfab1a24e3cc77649bf546bdaa241444 Mon Sep 17 00:00:00 2001 From: wsy182 <2392948297@qq.com> Date: Fri, 20 Mar 2026 17:27:13 +0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=E6=9B=B4=E6=96=B0=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E6=9C=8D=E5=8A=A1=E5=99=A8=E4=BB=A3=E7=90=86=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 API 代理目标端口从 8080 更改为 18080 - 将 WebSocket 代理目标端口从 8080 更改为 18080 - 保持了原有的 changeOrigin 和 ws 配置选项 --- vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 30c0c8e..b6109ff 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,11 +6,11 @@ export default defineConfig({ server: { proxy: { '/api/v1': { - target: 'http://127.0.0.1:8080', + target: 'http://127.0.0.1:18080', changeOrigin: true, }, '/api/v1/ws': { - target: 'ws://127.0.0.1:8080', + target: 'ws://127.0.0.1:18080', ws: true, } }