fix(nuxt): ignore prerendering unprefixed public assets

This commit is contained in:
Daniel Roe 2025-03-19 11:26:07 +00:00
parent eb84b5e777
commit 7a4cdbc67a
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -162,6 +162,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
.map(dir => ({ dir })),
],
prerender: {
ignoreUnprefixedPublicAssets: true,
failOnError: true,
concurrency: cpus().length * 4 || 4,
routes: ([] as string[]).concat(nuxt.options.generate.routes),