fix(nuxt): don't ignore any files from buildAssetsDir

This commit is contained in:
Daniel Roe 2024-03-15 11:16:57 -07:00
parent 85166cced7
commit 81933dfc3d
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

View File

@ -231,7 +231,7 @@ export async function initNitro (nuxt: Nuxt & { _nitro?: Nitro }) {
// Resolve user-provided paths
nitroConfig.srcDir = resolve(nuxt.options.rootDir, nuxt.options.srcDir, nitroConfig.srcDir!)
nitroConfig.ignore = [...(nitroConfig.ignore || []), ...resolveIgnorePatterns(nitroConfig.srcDir)]
nitroConfig.ignore = [...(nitroConfig.ignore || []), ...resolveIgnorePatterns(nitroConfig.srcDir), `!${join(nuxt.options.buildDir, 'dist/client', nuxt.options.app.buildAssetsDir)}/**/*`]
// Add app manifest handler and prerender configuration
if (nuxt.options.experimental.appManifest) {