refactor: default HTTP dev port to HTTP port + 1
This commit is contained in:
parent
6a05ee53f5
commit
72fce04802
|
@ -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);
|
||||
};
|
||||
|
|
|
@ -38,7 +38,7 @@ export default {
|
|||
},
|
||||
'@flecks/core/config': () => ({
|
||||
devHost: 'localhost',
|
||||
devPort: 32341,
|
||||
devPort: undefined,
|
||||
devPublic: undefined,
|
||||
devStats: 'minimal',
|
||||
host: '0.0.0.0',
|
||||
|
|
Loading…
Reference in New Issue
Block a user