Configuration
Canonical alternate
Preferred URL signal, not authorization or an indexing guarantee. Source: https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls
Formal Syntax & Structure
nextjs syntaxnextjs
alternates: { canonical: string }Working Example
Example Snippetnextjs
import type {Metadata} from 'next';export const metadata:Metadata={ alternates:{canonical:'https://books.example/en/catalog/river-walks'}};