API Reference
BlogServerAdapter
Below is the BlogServerAdapter
returned by createBlogServerAdapter
for SSR/SSG frameworks, and the options used to create it.
CreateBlogServerAdapterOptions
Prop
Type
BlogServerAdapter
Prop
Type
SEO helpers
The server adapter uses the best-in-class SEO resolver under the hood. You can:
- generate framework-agnostic metadata:
generateMetadata(path)
- generate Next.js Metadata shape:
generateNextMetadata(path)
- embed JSON-LD automatically on server render
Optionally pass a site config when creating the adapter:
createBlogServerAdapter({
provider,
queryClient,
site: {
siteUrl: "https://example.com",
siteName: "Example Blog",
publisherName: "Example Inc",
publisherLogoUrl: "https://cdn.example.com/logo.png",
defaultImageUrl: "https://cdn.example.com/og-default.jpg",
}
})