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.
- Speed (static website)
- SEO. Websites arrive to the client as HTML, so web crawlers can easily read the website’s content.
- Render relatively dynamic data (updates every hour or more)
- Cannot serve “ultra-dynamic” data (updates less than hourly), since each data update will require a rebuild on the server.
- Server overhead