cf.completefrontend
Open lab My progress
THE NEXT.JS FIELD GUIDE

The Metadata API

Give every Next.js page its title, description and link-preview tags with metadata and generateMetadata, title templates, merging, and the viewport.

By the end, you can
  • 01
    Write a page's metadataExport a metadata object or generateMetadata from a layout or a page, and read the <head> tags Next.js makes from it.
  • 02
    Predict the merged resultUse title templates, and tell which fields a page inherits from its layouts and which it replaces whole, like openGraph.
  • 03
    Know when metadata waitsPut themeColor in the viewport, satisfy Cache Components in generateMetadata, and tell where streamed metadata lands for browsers and bots.
CompleteFrontend Clear concepts. Working examples.