Compress images
This commit is contained in:
@@ -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(),
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user