ijjk / notion-blog

A Next.js site using new SSG support with a Notion backed blog
https://notion-blog.vercel.app
MIT License
3.7k stars 536 forks source link

sitemap and RSS generation #73

Closed fqure closed 3 years ago

fqure commented 3 years ago

This is in general nextjs/Vercel but how can something like this be put into the current notion-blog ?

ijjk commented 3 years ago

Hi, you can build a sitemap in a similar way to how the rss feed is being generated in this file.

If you would like it to dynamically update as pages are added via ISR you can add an API route with stale-wile-revalidate to generate the sitemap dynamically. Docs are coming soon for this here