From a50bb8c23f581c4089329e522f417cc49b1b41a5 Mon Sep 17 00:00:00 2001 From: xlsea Date: Fri, 16 Aug 2024 16:35:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dwebsocket=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/config/proxy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/config/proxy.ts b/build/config/proxy.ts index c71dc175..8fb350f2 100644 --- a/build/config/proxy.ts +++ b/build/config/proxy.ts @@ -12,9 +12,9 @@ export function createViteProxy(env: Env.ImportMeta, isDev: boolean) { if (!isEnableHttpProxy) return undefined; - const { baseURL, proxyPattern, other } = createServiceConfig(env); + const { baseURL, proxyPattern, ws, other } = createServiceConfig(env); - const proxy: Record = createProxyItem({ baseURL, proxyPattern }); + const proxy: Record = createProxyItem({ baseURL, ws, proxyPattern }); other.forEach(item => { Object.assign(proxy, createProxyItem(item));