From 05dbe7fcb0b6b9286844f741ceda55195c12f305 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Sat, 2 Dec 2023 18:17:10 +1100 Subject: [PATCH] fix: use `buildDir` option (#596) --- src/core/nuxt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/nuxt.ts b/src/core/nuxt.ts index c5f557d5a..b6ef9c637 100644 --- a/src/core/nuxt.ts +++ b/src/core/nuxt.ts @@ -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: {