Skip to content

Commit 12b25e0

Browse files
committed
fix(types): fix proxy types
1 parent e33f944 commit 12b25e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/config/proxy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { HttpProxy, ProxyOptions } from 'vite';
1+
import type { ProxyOptions } from 'vite';
22
import { bgRed, bgYellow, green, lightBlue } from 'kolorist';
33
import { consola } from 'consola';
44
import { createServiceConfig } from '../../src/utils/service';
@@ -33,7 +33,7 @@ function createProxyItem(item: App.Service.ServiceConfigItem, enableLog: boolean
3333
proxy[item.proxyPattern] = {
3434
target: item.baseURL,
3535
changeOrigin: true,
36-
configure: (_proxy: HttpProxy.Server, options: ProxyOptions) => {
36+
configure: (_proxy, options) => {
3737
_proxy.on('proxyReq', (_proxyReq, req, _res) => {
3838
if (!enableLog) return;
3939

0 commit comments

Comments
 (0)