fix(http): default dev port
This commit is contained in:
parent
78e63d6bd0
commit
b29d13abb6
|
@ -45,7 +45,7 @@ export const createHttpServer = async (flecks) => {
|
||||||
if ('production' !== NODE_ENV) {
|
if ('production' !== NODE_ENV) {
|
||||||
const proxy = httpProxy.createProxyServer({
|
const proxy = httpProxy.createProxyServer({
|
||||||
secure: false,
|
secure: false,
|
||||||
target: `http://${devHost}:${devPort}`,
|
target: `http://${devHost}:${devPort || (port + 1)}`,
|
||||||
});
|
});
|
||||||
proxy.on('proxyRes', async (proxyRes, req, res) => {
|
proxy.on('proxyRes', async (proxyRes, req, res) => {
|
||||||
res.statusCode = proxyRes.statusCode;
|
res.statusCode = proxyRes.statusCode;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user