From b0274357b3fc9d08e663374c2a5152d88ab9fa97 Mon Sep 17 00:00:00 2001 From: pooya parsa Date: Thu, 25 Jun 2020 16:48:04 +0200 Subject: [PATCH] fix(cli): listen to a random port for export and generate (#7608) --- packages/cli/src/commands/export.js | 2 +- packages/cli/src/commands/generate.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/export.js b/packages/cli/src/commands/export.js index a06c74b86d..a77ebb6046 100644 --- a/packages/cli/src/commands/export.js +++ b/packages/cli/src/commands/export.js @@ -34,7 +34,7 @@ export default { } const generator = await cmd.getGenerator(nuxt) - await nuxt.server.listen() + await nuxt.server.listen(0) const { errors } = await generator.generate({ init: true, diff --git a/packages/cli/src/commands/generate.js b/packages/cli/src/commands/generate.js index 552037d895..b77a8d09e7 100644 --- a/packages/cli/src/commands/generate.js +++ b/packages/cli/src/commands/generate.js @@ -95,7 +95,7 @@ export default { } const generator = await cmd.getGenerator(nuxt) - await nuxt.server.listen() + await nuxt.server.listen(0) const { errors } = await generator.generate({ init: true,