File tree 1 file changed +1
-5
lines changed
packages/vite/src/node/server/middlewares
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type { Connect } from 'dep-types/connect'
5
5
import type { HttpProxy } from 'dep-types/http-proxy'
6
6
import colors from 'picocolors'
7
7
import { HMR_HEADER } from '../ws'
8
- import { createDebugger , isObject } from '../../utils'
8
+ import { createDebugger } from '../../utils'
9
9
import type { CommonServerOptions , ResolvedConfig } from '../..'
10
10
11
11
const debug = createDebugger ( 'vite:proxy' )
@@ -121,10 +121,6 @@ export function proxyMiddleware(
121
121
req . url = bypassResult
122
122
debug ( `bypass: ${ req . url } -> ${ bypassResult } ` )
123
123
return next ( )
124
- } else if ( isObject ( bypassResult ) ) {
125
- Object . assign ( options , bypassResult )
126
- debug ( `bypass: ${ req . url } use modified options: %O` , options )
127
- return next ( )
128
124
} else if ( bypassResult === false ) {
129
125
debug ( `bypass: ${ req . url } -> 404` )
130
126
return res . end ( 404 )
You can’t perform that action at this time.
0 commit comments