mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
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:
npx create-next-app --example with-next-sitemap with-next-sitemap-app
yarn create next-app --example with-next-sitemap with-next-sitemap-app
pnpm create next-app --example with-next-sitemap with-next-sitemap-app
Deploy it to the cloud with Vercel (Documentation).