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;