Metadata

A page's metadata (title, description, Open Graph, canonical tags) is declared in Next.js with the metadata export or the generateMetadata function for dynamic pages. Next.js produces the corresponding <head> tags, which matter for SEO and sharing.

Example

export const metadata = {
  title: 'Home',
  description: 'Site overview'
}

Related concepts

The whole glossary