Increase the description's character limit

This commit is contained in:
Maciej Pędzich 2023-09-03 18:54:45 +02:00
parent 1f5a65d977
commit dda92399a7

View File

@ -3,12 +3,12 @@ import { z, defineCollection } from 'astro:content';
const cats = defineCollection({ const cats = defineCollection({
type: 'data', type: 'data',
schema: z.object({ schema: z.object({
name: z.string(), name: z.string().max(20),
dateAdded: z dateAdded: z
.string() .string()
.or(z.date()) .or(z.date())
.transform((val) => new Date(val)), .transform((val) => new Date(val)),
description: z.string().max(250), description: z.string().max(300),
image: z.object({ image: z.object({
src: z.string(), src: z.string(),
alt: z.string() alt: z.string()