I manage a lot of headless CMS sites. Some publish 10 to 20 stories a day, and every publish rebuilds the whole site.
So I wrote hybld. It keeps a hash of each page's data in SQLite and rebuilds only what changed. In my tests, one article into a 100,000-page React + Vite site took under a second.
MIT. It works with Next.js, Astro, SvelteKit, and Nuxt. If it's useful, a star helps others find it.
Code: https://github.com/hyscaler/hybld
Write-up: https://hyscaler.com/insights/headless-wordpress-incremental-builds/?utm_source=mastodon&utm_medium=social&utm_campaign=hybld