202404170340

This commit is contained in:
nelle 2024-04-17 03:40:55 -06:00
parent 58a32700a8
commit 4de073021d
3 changed files with 2 additions and 21 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,16 +0,0 @@
import { defineCollection, z } from 'astro:content';
const blog = defineCollection({
type: 'content',
// Type-check frontmatter using a schema
schema: z.object({
title: z.string(),
description: z.string(),
// Transform string to Date object
pubDate: z.coerce.date(),
updatedDate: z.coerce.date().optional(),
heroImage: z.string().optional(),
}),
});
export const collections = { blog };

View file

@ -1,6 +1,3 @@
{ {
"extends": "astro/tsconfigs/base", "extends": "astro/tsconfigs/base"
"compilerOptions": {
"strictNullChecks": true
}
} }