Compress images

This commit is contained in:
2023-12-25 17:24:27 +00:00
parent cc29d23bc2
commit 04b0b2972d
460 changed files with 3183 additions and 2451 deletions

View File

@@ -4,7 +4,16 @@ const blogCollection = defineCollection({
schema: z.object({
title: z.string(),
description: z.string(),
dir: z.string(),
image: z.string(),
fileType: z.optional(
z.union([
z.literal("jpg"),
z.literal("jpeg"),
z.literal("gif"),
z.literal("png"),
])
),
date: z.date(),
}),
});