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 (Recommended): The HTML is generated at build time and will be reused on each request.