Picture of Chris Eagle

Chris EagleWriting about web development and other things.

Generating sitemaps in Next.js with Markdown powered content

·10 min read

Next.js API routes provide huge scope for building functionality outside of normal pages. They can be leveraged not only for typical API behaviours like POST or GET requests, but when combined with rewrites can be a fantastic way to generate static files which need to fetch data from other sources. In this post I run through one approach to building sitemaps from markdown based blog.

Headless WordPress & Next.js - On Demand Incremental Static Regeneration

·5 min read

Next.js v12.1 has been released with the highly requested feature to manually trigger static regeneration and purge the cache instead of relying on visitors to regenerate after the invalidation time has been exceeded. Let's explore how we can leverage this with headless WordPress...