proxy issues no longer crash the server
This commit is contained in:
@ -21,6 +21,9 @@ function proxyRequest (route) {
|
|||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
secure: false
|
secure: false
|
||||||
})
|
})
|
||||||
|
proxy.on('error', err => {
|
||||||
|
// not worth crashing for
|
||||||
|
})
|
||||||
|
|
||||||
return function proxyMiddleware () {
|
return function proxyMiddleware () {
|
||||||
const keys = []
|
const keys = []
|
||||||
|
Reference in New Issue
Block a user