zod schema modified

This commit is contained in:
Al Murad Uzzaman
2024-05-23 16:16:41 +06:00
parent d5e012e6f8
commit e33a7dddcf
7 changed files with 88 additions and 158 deletions
-14
View File
@@ -1,14 +0,0 @@
import { defineCollection, z } from "astro:content";
const contactCollection = defineCollection({
schema: z.object({
title: z.string(),
meta_title: z.string().optional(),
description: z.string(),
draft: z.boolean().optional(),
}),
});
export const collections = {
contact: contactCollection,
};