Static Site Generation and Server-Side Rendering using Next.js introduction

Project Source Code

Get the project source code below, and follow along with the lesson material.

Download Project Source Code

To set up the project on your local machine, please follow the directions provided in the README.md file. If you run into any issues with running the project source code, then feel free to reach out to the author in the course's Discord channel.

This lesson preview is part of the Fullstack React with TypeScript Masterclass course and can be unlocked immediately with a \newline Pro subscription or a single-time purchase. Already have access to this course? Log in here.

This video is available to students only
Unlock This Course

Get unlimited access to Fullstack React with TypeScript Masterclass, plus 70+ \newline books, guides and courses with the \newline Pro subscription.

Thumbnail for the \newline course Fullstack React with TypeScript Masterclass

So far, we've been creating single page applications. Also, we didn't have any routing. And a single page application does not reload the whole page. Instead, it fetches the data and updates only the parts of the page that need to be updated. Sometimes, you need to build another kind of application, let's say a website, where you wanted to be searchable by the search engines. So you want to pre-render some sections of your site, a good example would be a blog or a news website. And then instead of rendering it on the client, you can do one of two things. Either you render it as a response to a server request, or you generate it statically as a file and then serve it like a regular HTML page. In this chapter, we will learn about both approaches, the server-side rendering and static-side generation. We will build our own news platform and publish it to Versal.