I am using keystatic to author my posts and I have it placing the posts in content/articles/
My config file looks like this:
const articlesCollection = defineCollection({
schema: z.object({
title: z.string(),
excerpt: z.string(),
publishedAt: z.date(),
category: z.enum(["catholicism", "life", "short-stories"]),
}),
});
const filmCollection = defineCollection({
type: "data",
schema: z.object({
title: z.string(),
embedUrl: z.string().url(),
videoUrl: z.string().url(),
summary: z.string(),
}),
});
export const collections = {
articles: articlesCollection,
films: filmCollection,
};
When I try to get articles via getCollection, I get that error in the frontend. Also, accessing films gives a no overload matches this call. I am trying to display the collection in a file with the path/pages/stories/short-stories.astro