mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(cli): listen to a random port for export and generate (#7608)
This commit is contained in:
parent
fe01ec34d3
commit
b0274357b3
@ -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,
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user