diff --git a/lib/commands/start.js b/lib/commands/start.js index 9550eab7c1..5b7a96e831 100644 --- a/lib/commands/start.js +++ b/lib/commands/start.js @@ -50,6 +50,7 @@ module.exports = async function start(siteDir, cliOptions = {}) { } const port = await getPort(cliOptions.port); + const hotPort = await getPort(port + 1); const {baseUrl} = props; // create compiler from generated webpack config @@ -79,7 +80,7 @@ module.exports = async function start(siteDir, cliOptions = {}) { logLevel: 'silent' }, hotClient: { - port: port + 1, + port: hotPort, logLevel: 'error' }, logLevel: 'error',