From 833393a1cd8fc83a3b9c6055cfb8d160ab40a40c Mon Sep 17 00:00:00 2001 From: Happydev <81974850+MoustaphaDev@users.noreply.github.com> Date: Tue, 9 May 2023 12:29:37 +0000 Subject: [PATCH] `astro:content` -> `astro/zod` to import zod (#33) * `astro:content` -> `astro/zod` to import zod * chore: changeset --- .changeset/strange-walls-sneeze.md | 5 +++++ packages/starlight/schema.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/strange-walls-sneeze.md diff --git a/.changeset/strange-walls-sneeze.md b/.changeset/strange-walls-sneeze.md new file mode 100644 index 00000000000..fd72d7d8e64 --- /dev/null +++ b/.changeset/strange-walls-sneeze.md @@ -0,0 +1,5 @@ +--- +"@astrojs/starlight": patch +--- + +Import zod from `astro/zod` to fix an issue related to importing the `astro:content` virtual module \ No newline at end of file diff --git a/packages/starlight/schema.ts b/packages/starlight/schema.ts index 3178ba1677f..43d3329af08 100644 --- a/packages/starlight/schema.ts +++ b/packages/starlight/schema.ts @@ -1,4 +1,4 @@ -import { z } from 'astro:content'; +import { z } from 'astro/zod'; export function docsSchema() { return z.object({