fix(nuxt): ignore manifest when prerendering (#24504)

This commit is contained in:
Daniel Roe 2023-11-28 14:02:30 +01:00 committed by GitHub
parent 02ab5b91e2
commit 0c47399f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,6 +234,10 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
const manifestPrefix = joinURL(nuxt.options.app.buildAssetsDir, 'builds') const manifestPrefix = joinURL(nuxt.options.app.buildAssetsDir, 'builds')
const tempDir = join(nuxt.options.buildDir, 'manifest') const tempDir = join(nuxt.options.buildDir, 'manifest')
nitroConfig.prerender ||= {}
nitroConfig.prerender.ignore ||= []
nitroConfig.prerender.ignore.push(manifestPrefix)
nitroConfig.publicAssets!.unshift( nitroConfig.publicAssets!.unshift(
// build manifest // build manifest
{ {