mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nitropack): respect custom output dir (#3940)
This commit is contained in:
parent
56252155ec
commit
90415d4674
@ -24,9 +24,11 @@ export async function initNitro (nuxt: Nuxt) {
|
|||||||
private: nuxt.options.privateRuntimeConfig
|
private: nuxt.options.privateRuntimeConfig
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
dir: nuxt.options.dev
|
dir: nitroOptions.output?.dir || (
|
||||||
|
nuxt.options.dev
|
||||||
? join(nuxt.options.buildDir, 'nitro')
|
? join(nuxt.options.buildDir, 'nitro')
|
||||||
: resolve(nuxt.options.rootDir, '.output')
|
: resolve(nuxt.options.rootDir, '.output')
|
||||||
|
)
|
||||||
},
|
},
|
||||||
dev: nuxt.options.dev,
|
dev: nuxt.options.dev,
|
||||||
preset: nuxt.options.dev ? 'dev' : undefined
|
preset: nuxt.options.dev ? 'dev' : undefined
|
||||||
|
Loading…
Reference in New Issue
Block a user