Integrations
Open Graph
Open Graph with Next.js Metadata API
Introduction
Next.js provides an useful set of utilities, allowing a flexible experience with Fumadocs. Fumadocs uses the Next.js Metadata API for SEO.
Make sure to read their Metadata section for the fundamentals of Metadata API.
Open Graph Image
For docs pages, Fumadocs UI has a built-in dynamic image generator.
You will need a route handler to get started.
We need to append og.png
to the end of slugs so that we can access it via /og/my-page/og.png
.
In your docs page, add the image to metadata.
You can also customise the font, options for Satori are also available on the built-in generator.
Last updated on