From b29d13abb62806cd9b7a9653630e313d6e8a0932 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 3 Mar 2022 10:00:00 -0600 Subject: [PATCH] fix(http): default dev port --- packages/http/src/server/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http/src/server/http.js b/packages/http/src/server/http.js index 15d47c2..30afb76 100644 --- a/packages/http/src/server/http.js +++ b/packages/http/src/server/http.js @@ -45,7 +45,7 @@ export const createHttpServer = async (flecks) => { if ('production' !== NODE_ENV) { const proxy = httpProxy.createProxyServer({ secure: false, - target: `http://${devHost}:${devPort}`, + target: `http://${devHost}:${devPort || (port + 1)}`, }); proxy.on('proxyRes', async (proxyRes, req, res) => { res.statusCode = proxyRes.statusCode;