From fd513ae9b28c7cf0e42647c2e55de5f6920e7cc9 Mon Sep 17 00:00:00 2001 From: Nathaniel Blackburn Date: Wed, 4 Dec 2024 23:44:59 +0000 Subject: [PATCH] refactor: update content collection config --- src/{content/config.ts => content.config.ts} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename src/{content/config.ts => content.config.ts} (69%) diff --git a/src/content/config.ts b/src/content.config.ts similarity index 69% rename from src/content/config.ts rename to src/content.config.ts index 3b4ecfa8..02540aeb 100644 --- a/src/content/config.ts +++ b/src/content.config.ts @@ -1,6 +1,6 @@ -import { z, defineCollection } from 'astro:content'; +import { defineCollection, z } from 'astro:content'; -const projectCollection = defineCollection({ +const project = defineCollection({ schema: ({ image }) => z.object({ title: z.string(), @@ -13,5 +13,5 @@ const projectCollection = defineCollection({ }); export const collections = { - project: projectCollection + project };