mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(schema): correctly set value for app.viewTransition (#25581)
This commit is contained in:
parent
95d475535a
commit
ced401abb7
@ -156,7 +156,9 @@ export default defineUntypedSchema({
|
||||
* @type {typeof import('../src/types/config').NuxtAppConfig['viewTransition']}
|
||||
*/
|
||||
viewTransition: {
|
||||
$resolve: async (val, get) => val ?? await get('experimental.viewTransition') ?? false
|
||||
$resolve: async (val, get) => val ?? await (get('experimental') as Promise<Record<string, any>>).then(
|
||||
(e) => e?.viewTransition
|
||||
) ?? false
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user