Skip to content

Incremental static regeneration

Incremental static regeneration

Unlike Static generation, “incremental” static generation enables a website to be generated on the server. However, this generation does not happen when a page is requested (Server-side rendering), but rather when some other event happens.

A website is generated statically, at build-time, and then deployed to a webserver. Then, when the webserver receives some command (perhaps from a webhook) the webserver performs a build job on the website. The goal is to update the website on the server with some new data without needing to redeploy the website to the server. Thus, incremental static generation is a “middle ground” between static generation and server-side rendering.

Advantages:

Disadvantages: