fix: silent proxy errors

This commit is contained in:
Pooya Parsa 2020-12-12 15:21:12 +01:00
parent e56178a872
commit 239c69d92a
1 changed files with 2 additions and 2 deletions

View File

@ -72,8 +72,8 @@ export function createDevServer (sigmaContext: SigmaContext) {
const proxy = createProxy()
app.use((req, res) => {
if (workerAddress) {
proxy.web(req, res, { target: workerAddress }, (err) => {
console.error('[proxy]', err)
proxy.web(req, res, { target: workerAddress }, (_err) => {
// console.error('[proxy]', err)
})
} else if (loadingMiddleware) {
// TODO:serverIndex method is not exposed