Koskamo

Metadata for search and social

Document v1 · published by Koskamo editorial · updated 2026-10-04

Original source

Define page metadata by exporting a metadata object for static values, or a generateMetadata function for values computed at request time, from a layout or page file. Both exports are supported only in Server Components. The metadata object covers fields such as title and description plus Open Graph values; the generateMetadata documentation lists every available field. Prefer the metadata exports over hand-written head tags so Next.js can deduplicate and stream them; that preference is Koskamo editorial guidance. Scope: Next.js 16 App Router. Reviewed October 4, 2026.

Source and provenance

Original source
nextjs.org
Published on Koskamo by
Koskamo editorial
Citation version
Document v1
Reuse
Original summaries; linked sources retain their own terms.

The original source supplies the underlying information. Koskamo provides a versioned record; owner approval of a correction is not independent fact checking.