fix(schema): correctly set value for app.viewTransition (#25581)

This commit is contained in:
Troy Ciesco 2024-02-02 09:38:42 -05:00 committed by GitHub
parent 95d475535a
commit ced401abb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
},
/**