Skip to main content
@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