How the CMS is configured in JTBDOS.
basehub/JTBDOS
templateFeed
componentFeed
component is a wrapper around BaseHub’s Pump
component — a React Server Component that gets generated with the basehub SDK. It leverages RSC, Server Actions, and the existing BaseHub client to subscribe to changes in real time with minimal development effort.
It’s also setup by default to use Next.js Draft Mode, allowing you to preview draft content in your app.
Body
componentBody
component is a wrapper around BaseHub’s RichText
component — BaseHub’s rich text renderer which supports passing custom handlers for native html elements and BaseHub components.
TableOfContents
componentTableOfContents
component leverages the Body
component to render the table of contents for the current page.
Image
componentImage
component is a wrapper around BaseHub’s BaseHubImage
component, which comes with built-in image resizing and optimization. BaseHub recommendeds using the BaseHubImage
component instead of the standard Next.js Image
component as it uses Image
under the hood, but adds a custom loader to leverage BaseHub’s image pipeline.
Toolbar
componentToolbar
component is a wrapper around BaseHub’s Toolbar
component, which helps manage draft mode and switch branches in your site previews. It’s automatically mounted on CMS pages.