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
2167
-
if(!proxyConfig.bypass){
2168
-
util.deprecate(
2169
-
()=>{},
2170
-
`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`,
2171
-
"DEP_WEBPACK_DEV_SERVER_PROXY_ROUTES_ARGUMENT",
2172
-
)();
2173
-
}
2174
2156
};
2175
2157
2176
2158
/**
@@ -2236,40 +2218,11 @@ class Server {
2236
2218
}
2237
2219
}
2238
2220
2239
-
// - Check if we have a bypass function defined
2240
-
// - In case the bypass function is defined we'll retrieve the
2241
-
// bypassUrl from it otherwise bypassUrl would be null
2242
-
// 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