Skip to content

Commit c0b4281

Browse files
committed
fix: optional image for articles
1 parent fcdd06b commit c0b4281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const postCollection = defineCollection({
6464
schema: ({ image }) => z.object({
6565
title: z.string(),
6666
date: z.date(),
67-
image: image(),
67+
image: image().optional(),
6868
seo: seoSchema(image),
6969
}),
7070
});

0 commit comments

Comments
 (0)