Reads an MDX file and extracts its frontmatter metadata and content
Absolute path to the MDX file
Object containing parsed metadata and content body
const { metadata, content } = readMDXFile('/path/to/post.mdx')// metadata: { title: "Hello", publishedAt: "2025-01-01", summary: "..." }// content: "# Content here..." Copy
const { metadata, content } = readMDXFile('/path/to/post.mdx')// metadata: { title: "Hello", publishedAt: "2025-01-01", summary: "..." }// content: "# Content here..."
Reads an MDX file and extracts its frontmatter metadata and content