Skip to content

Commit c33a6a7

Browse files
committed
Change newsletters content type name to match directory name.
This makes sure the newsletters frontmatter is properly being validated by the schema.
1 parent a192f61 commit c33a6a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ export const newsletterSchema = z
3232
.strict();
3333
export type Newsletter = z.infer<typeof newsletterSchema>;
3434

35-
const newsletter = defineCollection({
35+
const newsletters = defineCollection({
3636
type: "content",
3737
schema: newsletterSchema,
3838
});
3939

4040
export const collections = {
4141
posts,
42-
newsletter,
42+
newsletters,
4343
};

0 commit comments

Comments
 (0)