feat(06-01): extend blogSchema with draft/wordCount/minutes fields

- Add draft: z.boolean().optional().default(false) to allow .where('draft','=',false)
- Add wordCount + minutes as optional (injected by Nitro hook at parse time)
- Collections blog_fr/blog_en unchanged (schema is referenced by variable)
This commit is contained in:
2026-04-22 08:56:46 +02:00
parent 61daa96663
commit b56c607a00
+3
View File
@@ -6,6 +6,9 @@ const blogSchema = z.object({
date: z.string(),
tags: z.array(z.string()).optional(),
image: z.string().optional(),
draft: z.boolean().optional().default(false),
wordCount: z.number().optional(),
minutes: z.number().optional(),
})
export default defineContentConfig({