fix(cli): server should not be initialized in nuxt build (#6441)

This commit is contained in:
Xin Du (Clark) 2019-09-20 19:49:38 +01:00 committed by Pooya Parsa
parent 4e4aa4d5d4
commit 95e043f167

View File

@ -61,7 +61,7 @@ export default {
}
},
async run (cmd) {
const config = await cmd.getNuxtConfig({ dev: false, _build: true })
const config = await cmd.getNuxtConfig({ dev: false, server: false, _build: true })
const nuxt = await cmd.getNuxt(config)
if (cmd.argv.lock) {