generateMetadata
function to generate the metadata.
For example, here’s how we’ve wired up the metadata for the blog post page, using the createMetadata
function from the SEO package:
apps/web/app/blog/[slug]/page.tsx
blog.getPost
is a function that abstracts the logic of fetching the blog post from the CMS. Under the hood, it uses the BaseHub SDK to fetch the blog post from the CMS:
packages/cms/index.ts