fix(http): default dev port

This commit is contained in:
cha0s 2022-03-03 10:00:00 -06:00
parent 78e63d6bd0
commit b29d13abb6

View File

@ -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;