Update to astro@2.0.0-beta.4

This commit is contained in:
prototypa
2023-01-23 17:59:08 -05:00
parent 1ddaf803e9
commit 7155c5ff23
2 changed files with 3 additions and 7 deletions

View File

@ -7,7 +7,6 @@ const posts = defineCollection({
image: z.string().optional(),
canonical: z.string().url().optional(),
permalink: z.string().optional(),
publishDate: z.date().or(z.string()).optional(),
draft: z.boolean().optional(),
@ -17,9 +16,6 @@ const posts = defineCollection({
tags: z.array(z.string()).optional(),
author: z.string().optional(),
}),
slug: ({ defaultSlug, data }) => {
return data.permalink || defaultSlug;
},
});
export const collections = {