From d7c15c1a5dc750c00f953df5174d021930991d7b Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Sat, 2 Dec 2023 14:57:53 +1100 Subject: [PATCH] fix: use `buildDir` option --- 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: {