Adding a Sitemap to Nextjs

Adding a Sitemap and Robots.txt to a Next.js Site Overview Sitemaps serve as a directory of the pages and content on your website, and creating these files is one of the most basic SEO steps to take. A sitemap is essentially a roadmap to the pages on your website. It can be in either HTML or XML format, with the latter used in the next-sitemap package that I’ll discuss here. ...

February 20, 2023 · 3 min · Paul Schick