diff --git a/packages/nuxt/src/core/nuxt.ts b/packages/nuxt/src/core/nuxt.ts index b81c4ed141..d64e95a0a9 100644 --- a/packages/nuxt/src/core/nuxt.ts +++ b/packages/nuxt/src/core/nuxt.ts @@ -408,11 +408,15 @@ async function initNuxt (nuxt: Nuxt) { } // Add - addComponent({ - name: 'NuxtWelcome', - priority: 10, // built-in that we do not expect the user to override - filePath: resolve(nuxt.options.appDir, 'components/welcome'), - }) + // TODO: revert when deep server component config is properly bundle-split: https://github.com/nuxt/nuxt/pull/29956 + const islandsConfig = nuxt.options.experimental.componentIslands + if (nuxt.options.dev || !(typeof islandsConfig === 'object' && islandsConfig.selectiveClient === 'deep')) { + addComponent({ + name: 'NuxtWelcome', + priority: 10, // built-in that we do not expect the user to override + filePath: resolve(nuxt.options.appDir, 'components/welcome'), + }) + } addComponent({ name: 'NuxtLayout',