Documentation Index
Fetch the complete documentation index at: https://mf2.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
@repo/cms provides headless content management through BaseHub. Use it for blog posts, legal pages, and marketing copy.
Usage
import { fetchBlogPost } from "@repo/cms";
export default async function BlogPost({ params }: { params: { slug: string } }) {
const post = await fetchBlogPost(params.slug);
return (
<article>
<h1>{post.title}</h1>
<time dateTime={post.publishedAt}>{post.formattedDate}</time>
<div>{post.content}</div>
</article>
);
}
Environment Variables
See Environment Variables — CMS.
Content changes appear on the next request. Statically generated pages need a revalidation or redeploy.
Learn More