Documentation
ContentBind renders your components inside your application. The integration is a fetch and a render; everything else here is about what authors can then do without you.
import { fetchOneEntry, isContentBindError } from '@contentbind/sdk'
import { Content } from '@contentbind/sdk/react'
export default async function Page({ params }) {
const { slug } = await params
const entry = await fetchOneEntry({
model: 'page',
publicKey: process.env.NEXT_PUBLIC_CONTENTBIND_KEY,
urlPath: '/' + (slug ?? []).join('/'),
})
if (isContentBindError(entry)) return null
return (
<Content
model="page"
content={entry}
publicKey={process.env.NEXT_PUBLIC_CONTENTBIND_KEY}
/>
)
}Getting started
Building
Shipping
Reference
Working with an assistant? Every page has a “Copy for an LLM” button, and the whole site is available as llms.txt and llms-full.txt.