mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 07:59:33 +00:00
fix(cli): server should not be initialized in nuxt build (#6441)
This commit is contained in:
parent
4e4aa4d5d4
commit
95e043f167
@ -61,7 +61,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async run (cmd) {
|
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)
|
const nuxt = await cmd.getNuxt(config)
|
||||||
|
|
||||||
if (cmd.argv.lock) {
|
if (cmd.argv.lock) {
|
||||||
|
Loading…
Reference in New Issue
Block a user