diff options
Diffstat (limited to '.changeset/quiet-actors-agree.md')
-rw-r--r-- | .changeset/quiet-actors-agree.md | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/.changeset/quiet-actors-agree.md b/.changeset/quiet-actors-agree.md deleted file mode 100644 index 48730ebf0..000000000 --- a/.changeset/quiet-actors-agree.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'astro': minor ---- - -Allow Zod objects, unions, discriminated unions, intersections, and transform results as content collection schemas. - -#### Migration - -Astro requires a `z.object(...)` wrapper on all content collection schemas. Update your content collections config like so: - -```diff -// src/content/config.ts -import { z, defineCollection } from 'astro:content'; - -const blog = defineCollection({ -- schema: { -+ schema: z.object({ - ... -}) -``` |