MENU
Metadata
You can define the HTML <title>, <meta> and <link> tags of a Next.js page by exporting a special object named 'metadata' or a special function named 'generateMetadata()' on page.tsx or layout.tsx.
You can also place directly into the folder /app/ well-recognized website files such as:
- favicon.ico
- OpenGraph image or Twitter image
- sitemap.xml
- robots.txt
- manifest.json
Alternatively, these files can be generated programmatically using special Next.js functions too.
File-based metadata takes precedence and will override any configuration-based metadata.
Consider placing other files such as ads.txt in the public folder.