Gaurav Sobti
HomeLearnBlog

field notes

Writing

Notes on code, and occasionally on everything that isn't.

  • 2024-01-02

    When to Use Static Generation v.s. Server-side Rendering

    We recommend using **Static Generation** (with and without data) whenever possible because your page can be built once and served by CDN, which makes it much faster than having a server render the page on every request.

  • 2024-01-01

    Two Forms of Pre-rendering

    Next.js has two forms of pre-rendering: **Static Generation** and **Server-side Rendering**. The difference is in **when** it generates the HTML for a page.