fix(cli): listen to a random port for export and generate (#7608)

This commit is contained in:
pooya parsa 2020-06-25 16:48:04 +02:00 committed by GitHub
parent fe01ec34d3
commit b0274357b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ export default {
} }
const generator = await cmd.getGenerator(nuxt) const generator = await cmd.getGenerator(nuxt)
await nuxt.server.listen() await nuxt.server.listen(0)
const { errors } = await generator.generate({ const { errors } = await generator.generate({
init: true, init: true,

View File

@ -95,7 +95,7 @@ export default {
} }
const generator = await cmd.getGenerator(nuxt) const generator = await cmd.getGenerator(nuxt)
await nuxt.server.listen() await nuxt.server.listen(0)
const { errors } = await generator.generate({ const { errors } = await generator.generate({
init: true, init: true,