refactor: default HTTP dev port to HTTP port + 1

This commit is contained in:
cha0s 2022-03-03 07:36:22 -06:00
parent 6a05ee53f5
commit 72fce04802
2 changed files with 3 additions and 2 deletions

View File

@ -7,11 +7,12 @@ module.exports = (flecks) => (neutrino) => {
devPort,
devPublic,
devStats,
port,
} = flecks.get('@flecks/http/server');
neutrino.config.devServer
.hot(false)
.host(devHost)
.port(devPort)
.port(devPort || (port + 1))
.public(devPublic)
.stats(devStats);
};

View File

@ -38,7 +38,7 @@ export default {
},
'@flecks/core/config': () => ({
devHost: 'localhost',
devPort: 32341,
devPort: undefined,
devPublic: undefined,
devStats: 'minimal',
host: '0.0.0.0',