mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(nuxt): ignore manifest when prerendering (#24504)
This commit is contained in:
parent
02ab5b91e2
commit
0c47399f33
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user