refactor: update blog schema by removing ogImage alt

This commit is contained in:
satnaing
2023-01-30 12:12:13 +06:30
parent f73f02e6e9
commit f157ee6cf3
10 changed files with 25 additions and 30 deletions
+1 -6
View File
@@ -8,12 +8,7 @@ export const blogSchema = z.object({
featured: z.boolean(),
draft: z.boolean(),
tags: z.array(z.string()),
ogImage: z
.object({
src: z.string(),
alt: z.string().optional(),
})
.optional(),
ogImage: z.string().optional(),
description: z.string(),
});