diff --git a/packages/schema/src/config/experimental.ts b/packages/schema/src/config/experimental.ts index 9396527ef4..6393bea03d 100644 --- a/packages/schema/src/config/experimental.ts +++ b/packages/schema/src/config/experimental.ts @@ -412,6 +412,10 @@ export default defineUntypedSchema({ * Keep showing the spa-loading-template until suspense:resolve * @see [Nuxt Issues #24770](https://github.com/nuxt/nuxt/issues/21721) */ - spaPreloaderOutside: false, + spaPreloaderOutside: { + $resolve: async (val, get) => { + return val ?? ((await get('future') as Record).compatibilityVersion === 4) + }, + }, }, })