Skip to content

Commit 0bcbaac

Browse files
authored
fix(cli): disable parallel build behaviour when generating (nuxt#8683)
closes nuxt#7390
1 parent db29fcd commit 0bcbaac

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/cli/src/commands/generate.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ export default {
8080

8181
// Set flag to keep the prerendering behaviour
8282
config._legacyGenerate = true
83+
if (config.build) {
84+
// https://github.com/nuxt/nuxt.js/issues/7390
85+
config.build.parallel = false
86+
}
8387

8488
const nuxt = await cmd.getNuxt(config)
8589

packages/cli/src/utils/generate.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ async function getNuxt (args, cmd) {
129129
}
130130
config.buildDir = (config.static && config.static.cacheDir) || path.resolve(config.rootDir, 'node_modules/.cache/nuxt')
131131
config.build = config.build || {}
132+
// https://github.com/nuxt/nuxt.js/issues/7390
133+
config.build.parallel = false
132134
config.build.transpile = config.build.transpile || []
133135
if (!config.static || !config.static.cacheDir) {
134136
config.build.transpile.push('.cache/nuxt')

0 commit comments

Comments
 (0)