Do not attempt to set up proxies if there are none.
This commit is contained in:
parent
ab7b2da83b
commit
7412d97bf3
@ -145,6 +145,10 @@ const createWebServer = opts => {
|
||||
// ===================================================================
|
||||
|
||||
const setUpProxies = (connect, opts) => {
|
||||
if (!opts) {
|
||||
return
|
||||
}
|
||||
|
||||
// HTTP request proxy.
|
||||
forEach(opts, (config, url) => {
|
||||
connect.use(url, (req, res) => {
|
||||
|
Loading…
Reference in New Issue
Block a user