Skip to content

genPageMetadata Reference

The genPageMetadata function generates the metadata for a page, including the title, description, canonical URL, and Open Graph and Twitter metadata.

The genPageMetadata function accepts one parameter, an object containing the following properties:

type: string

The title of the page.

type: string

The description of the page.

type: string

The route for the page.

type: string

The URL of the Open Graph image. If not specified, defaults to the Open Graph defined in defineSeoConfig.