#Different docsSchemas for Starlight Docs Content Loader
3 messages · Page 1 of 1 (latest)
https://github.com/withstudiocms/studiocms/blob/nov-30/docs/src/content.config.ts#L20 this is working for one of my projects 🤔
Ahh yeah... Thanks for the link, you're a legend! Now that I see how you defined the union it was so obvious 😄
The Objects in the union needed to have the template literals in them
z.object({
template: z.literal("doc"),
lexical: lexicalRoot,
}),
z.object({
template: z.literal("splash"),
layout: z.array(layoutBlock),
}),
Added code to make it more searchable