You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO improve me after drop `bypass` to always generate error when configuration is bad
2150
-
if(!proxyConfig.bypass){
2151
-
util.deprecate(
2152
-
()=>{},
2153
-
`Invalid proxy configuration:\n\n${JSON.stringify(proxyConfig,null,2)}\n\nThe use of proxy object notation as proxy routes has been removed.\nPlease use the 'router' or 'context' options. Read more at https://github.com/chimurai/http-proxy-middleware/tree/v2.0.6#http-proxy-middleware-options`,
2154
-
"DEP_WEBPACK_DEV_SERVER_PROXY_ROUTES_ARGUMENT",
2155
-
)();
2156
-
}
2157
2139
};
2158
2140
2159
2141
/**
@@ -2219,40 +2201,11 @@ class Server {
2219
2201
}
2220
2202
}
2221
2203
2222
-
// - Check if we have a bypass function defined
2223
-
// - In case the bypass function is defined we'll retrieve the
2224
-
// bypassUrl from it otherwise bypassUrl would be null
2225
-
// TODO remove in the next major in favor `context` and `router` options
"Using the 'bypass' option is deprecated. Please use the 'router' or 'context' options. Read more at https://github.com/chimurai/http-proxy-middleware/tree/v2.0.6#http-proxy-middleware-options",
0 commit comments