Skip to content

Commit

Permalink
fix: use buildDir option (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 2, 2023
1 parent dfe494d commit 05dbe7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/nuxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function loadFixture () {

if (!ctx.options.dev) {
const randomId = Math.random().toString(36).slice(2, 8)
const buildDir = resolve(ctx.options.rootDir, '.nuxt', randomId)
const buildDir = ctx.options.buildDir || resolve(ctx.options.rootDir, '.nuxt', randomId)
ctx.options.nuxtConfig = defu(ctx.options.nuxtConfig, {
buildDir,
nitro: {
Expand Down

0 comments on commit 05dbe7f

Please sign in to comment.