sailfork / t3code-github / .repos/ alchemy-effect/ packages/ frontend-frameworks/ fixtures/ astro/ src/ content.config.ts
import { glob } from "astro/loaders";
import { z } from "astro/zod";
import { defineCollection } from "astro:content";
const posts = defineCollection({
loader: glob({ pattern: "**/*.md", base: "./src/posts" }),
schema: z.object({
title: z.string(),
}),
});
export const collections = { posts };