fix(core): build command to consider nitroConfig.preset when not provided as arg
This commit is contained in:
parent
62fbf5c4b8
commit
8020987ccd
1 changed files with 4 additions and 2 deletions
|
@ -20,14 +20,16 @@ async function _build(args) {
|
||||||
|
|
||||||
const nitroConfig = await getNitroConfig()
|
const nitroConfig = await getNitroConfig()
|
||||||
|
|
||||||
|
console.log('>>> preset arg', args.preset)
|
||||||
|
|
||||||
const nitro = await createNitro({
|
const nitro = await createNitro({
|
||||||
rootDir,
|
rootDir,
|
||||||
dev: false,
|
dev: false,
|
||||||
|
|
||||||
...nitroConfig,
|
...nitroConfig,
|
||||||
|
|
||||||
minify: args.minify,
|
minify: args.minify ?? nitroConfig.minify,
|
||||||
preset: args.preset,
|
preset: args.preset ?? nitroConfig.preset,
|
||||||
})
|
})
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url)
|
const __filename = fileURLToPath(import.meta.url)
|
||||||
|
|
Loading…
Reference in a new issue