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));