The JAMstack (JavaScript-API-Markup) movement makes us rethink how we build websites.

The latest trend, and rightfully so, is to pre-render pages at build time instead of rendering them on the client or on the server (via Server Side Rendering), to achieve a blazing fast experience.

What can be a statically generated website?

It is generally a good idea to pre-render a website/a page (i.e. use Static Site Generation) which does not have a lot of dynamic content that should be different for every user.

Dynamic content is meant by data that has to be fetched from an external API, such as third party service or database.

A blog or a portfolio is a great example.

Of course, a page which has absolutely no need for external data fetching is the perfect static page.

Whenever you add a blog post or add a new project to your portfolio, you trigger a re-build of your project and all the data is fresh. Still static, though, and served super fast via a Content Delivery Network.

#software-development #programming #web-development #javascript #react

How to use Next.js to create a Static Site in the JAMstack era
1.25 GEEK