Browse Source

proxy issues no longer crash the server

master
Lloyd Brookes 7 years ago
parent
commit
712ca37865
  1. 3
      lib/middleware.js

3
lib/middleware.js

@ -21,6 +21,9 @@ function proxyRequest (route) {
changeOrigin: true,
secure: false
})
proxy.on('error', err => {
// not worth crashing for
})
return function proxyMiddleware () {
const keys = []

Loading…
Cancel
Save