From 0c47399f33f99ad099624fa42a4240e8c92bb355 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 28 Nov 2023 14:02:30 +0100 Subject: [PATCH] fix(nuxt): ignore manifest when prerendering (#24504) --- packages/nuxt/src/core/nitro.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nuxt/src/core/nitro.ts b/packages/nuxt/src/core/nitro.ts index b041b6f239..2011c11b82 100644 --- a/packages/nuxt/src/core/nitro.ts +++ b/packages/nuxt/src/core/nitro.ts @@ -234,6 +234,10 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) { const manifestPrefix = joinURL(nuxt.options.app.buildAssetsDir, 'builds') const tempDir = join(nuxt.options.buildDir, 'manifest') + nitroConfig.prerender ||= {} + nitroConfig.prerender.ignore ||= [] + nitroConfig.prerender.ignore.push(manifestPrefix) + nitroConfig.publicAssets!.unshift( // build manifest {