mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 01:45: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
|
||||
},
|
||||
output: {
|
||||
dir: nuxt.options.dev
|
||||
? join(nuxt.options.buildDir, 'nitro')
|
||||
: resolve(nuxt.options.rootDir, '.output')
|
||||
dir: nitroOptions.output?.dir || (
|
||||
nuxt.options.dev
|
||||
? join(nuxt.options.buildDir, 'nitro')
|
||||
: resolve(nuxt.options.rootDir, '.output')
|
||||
)
|
||||
},
|
||||
dev: nuxt.options.dev,
|
||||
preset: nuxt.options.dev ? 'dev' : undefined
|
||||
|
Loading…
Reference in New Issue
Block a user