mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-22 11:22:43 +00:00
fix: set default spaPreloaderOutside
when compatibilityVersion: 4
This commit is contained in:
parent
aa830c5274
commit
07cd634646
@ -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<string, unknown>).compatibilityVersion === 4)
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user