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

Added in: seo-in-nextjs@1.0.0

The title of the page.

type: string

Added in: seo-in-nextjs@1.0.0

The description of the page.

type: string

Added in: seo-in-nextjs@1.0.0

The route for the page.

type: string

Added in: seo-in-nextjs@1.0.0

default: defaultOgImg (if specified)

The URL of the Open Graph image.