Files
next-learn/example/posts/pre-rendering.md
Shu Uesugi 306679ed0c Rename
2020-04-19 14:12:41 -07:00

686 B

title, date
title date
Two Forms of Pre-rendering 2020-01-01

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.

  • Static Generation is the pre-rendering method that generates the HTML at build time. The pre-rendered HTML is then reused on each request.
  • Server-side Rendering is the pre-rendering method that generates the HTML on each request.

Importantly, Next.js lets you choose which pre-rendering form to use for each page. You can create a "hybrid" Next.js app by using Static Generation for most pages and using Server-side Rendering for others.