A Next.js Server Component to embed your Openchangelog changelog into your Next.js app.
For a summary of the most recent changes to the project, please see the Changelog.
npm i @openchangelog/next
import { Changelog } from "@openchangelog/next"
export default function ChangelogPage() {
return (
<Changelog
workspaceID="ws_xxxx" // when using Openchangelog cloud
changelogID="cl_xxxx" // when using Openchangelog cloud
baseUrl="https://your-changelog-instance.com" // when self-hosting
theme="dark"
/>
);
}
The Changelog
component is built as an async component, making it compatible with React Suspense. You can wrap it in a Suspense boundary to show loading states while the changelog data is being fetched:
import { Changelog } from "@openchangelog/next"
export default function ChangelogPage() {
return (
<Suspense fallback={<div>Loading changelog...</div>}>
<Changelog />
</Suspense>
);
}