fix: get og image url correctly

This commit is contained in:
tanishqmanuja
2023-09-20 15:33:51 +05:30
committed by Sat Naing
parent b03b722369
commit 7f3edbdecd
2 changed files with 3 additions and 4 deletions
+1
View File
@@ -16,6 +16,7 @@ const blog = defineCollection({
.refine(img => img.width >= 1200 && img.height >= 630, {
message: "OpenGraph image must be at least 1200 X 630 pixels!",
})
.or(z.string())
.optional(),
description: z.string(),
canonicalURL: z.string().optional(),