Skip to content

Glossary: Next.js Basics

sitemap

Also written: sitemap.xml, sitemap.js

A file at /sitemap.xml listing the pages you want search engines to find. You write `app/sitemap.js` returning full URLs, and Next.js turns it into XML.

Where the book teaches it

Related terms

robots.txt