更新 src/content.config.ts

This commit is contained in:
2025-11-24 12:53:55 +08:00
parent 16aef30869
commit dc62d3268b

View File

@@ -8,8 +8,10 @@ const docs = defineCollection({
schema: z.object({
title: z.string().optional(),
description: z.string().optional(),
tags: z.array(z.string()).optional(),
// pubDate: z.coerce.date(),
// updatedDate: z.coerce.date().optional(),
createdAt: z.coerce.date().optional(),
updatedAt: z.coerce.date().optional(),
}),
});