From 239c69d92afc56821158670053e7fc4c5114adf1 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 12 Dec 2020 15:21:12 +0100 Subject: [PATCH] fix: silent proxy errors --- packages/nitro/src/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nitro/src/server.ts b/packages/nitro/src/server.ts index fdc25d2cf0..70bfd90041 100644 --- a/packages/nitro/src/server.ts +++ b/packages/nitro/src/server.ts @@ -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