Skip to content

Commit e1063f6

Browse files
Copilothotlong
andcommitted
Fix blog schema validation for date field
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent dee0344 commit e1063f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/docs/source.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const blog = defineDocs({
99
dir: '../../content/blog',
1010
schema: frontmatterSchema.extend({
1111
author: z.string().optional(),
12-
date: z.string().or(z.date()).optional(),
12+
date: z.string().date().optional(),
1313
tags: z.array(z.string()).optional(),
1414
}),
1515
}) as any;

0 commit comments

Comments
 (0)