proxy issues no longer crash the server

This commit is contained in:
Lloyd Brookes
2017-03-13 09:04:59 +00:00
parent 0a1fcd252b
commit 712ca37865

View File

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