Metadata
File-based Metadata API:
Key takeaways:
- Can be defined only in
layout
andpage
- All metadata in parent routes are merged with that in the current page (cascade)
- Server components only
- Usage of
searchParams
makes the segment SSR. See: Dynamic SSR - File-based Metadata. We can generate
robots.txt
,sitemap.xml
and images dynamically, defining them in separate files. See: Sitemap, Robots and Image Generation - List of unsupported tags