Types of Pre-Rendering
Next.js has options for pre-rendering HTML pages. This lesson covers the two types of pre-rendering. By the end of it, you will be able to determine the type of pre-rendering Next.js will use to generate your HTML before you start building a page.
Static generation (recommended)
The HTML is generated at build-time and is reused for each request.
Static Generation
Static generation without data
-
If your page has no data blocking requirements, it will be statically generated.
-
The HTML is generated at build time and will be reused on each request.
-
The HTML will be cached on CDNs and allow the pages to be served to the client very quickly.
-
These pages will display the Static Optimization Indicator when the application is ...