Back to Next Js

next-sitemap example

examples/with-next-sitemap/README.md

16.2.51.4 KB
Original Source

next-sitemap example

This example uses next-sitemap to generate a sitemap file for all pages (including all pre-rendered/static pages).

next-sitemap allows the generation of sitemaps along with robots.txt and provides the feature to split large sitemaps into multiple files. Checkout the next-sitemap documentation to learn more.

Deploy your own

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

bash
npx create-next-app --example with-next-sitemap with-next-sitemap-app
bash
yarn create next-app --example with-next-sitemap with-next-sitemap-app
bash
pnpm create next-app --example with-next-sitemap with-next-sitemap-app

Deploy it to the cloud with Vercel (Documentation).