Skip to content

A demo to test the caching behavior of a dynamically generated sitemap in Next.js

Notifications You must be signed in to change notification settings

fabiancdng/nextjs-sitemap-reval-test

Repository files navigation

Next.js sitemap.ts revalidation demo

Steps to reproduce

  1. Run npm run build for the production build of the app
  2. Serve with npm start
  3. Head to http://localhost:3000/sitemap.xml
  4. Change something in the src/app/test.json file
  5. Wait up to 40s
  6. Your sitemap.xml should automatically be updated from the contents of the test.json file

About

A demo to test the caching behavior of a dynamically generated sitemap in Next.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published