Skip to content

Commit

Permalink
docs: add slug field
Browse files Browse the repository at this point in the history
  • Loading branch information
87xie authored and sdorra committed Dec 13, 2024
1 parent 2894795 commit 0d4405d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions samples/next-mdx-static-import/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const posts = defineCollection({
parser: "frontmatter-only",
schema: (z) => ({
title: z.string(),
slug: z.string(),
}),
transform: ({ _meta, ...post }) => {
const mdxContent = createDefaultImport<MDXContent>(`@/content/posts/${_meta.filePath}`);
Expand Down

0 comments on commit 0d4405d

Please sign in to comment.