From 34b6887118c83281ebb6af07023af645d1880d58 Mon Sep 17 00:00:00 2001 From: patrick Date: Wed, 8 Apr 2026 08:44:30 -0400 Subject: [PATCH] fix: import z directly from zod to resolve deprecation warnings --- src/content.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/content.config.ts b/src/content.config.ts index edf4c20..5f29060 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -1,5 +1,6 @@ import { glob } from 'astro/loaders' -import { defineCollection, z } from 'astro:content' +import { defineCollection } from 'astro:content' +import { z } from 'zod' const blog = defineCollection({ loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/blog' }), @@ -23,7 +24,7 @@ const projects = defineCollection({ description: z.string(), tags: z.array(z.string()), image: image(), - link: z.string().url().optional(), + link: z.url().optional(), order: z.number().optional(), startDate: z.coerce.date().optional(), endDate: z.coerce.date().optional(),