1. 5
    Understanding Next.js getStaticPaths
    7m 12s

Understanding Next.js getStaticPaths

Share this video with your friends

Send Tweet

For our personal portfolio site, we definitely want to have a blog or list of articles. If we want to display articles, we might have a routing like /articles/some-article.

In this lesson, we learn how Next.js uses a folder-based routing system and in particular why getStaticPaths is useful for creating a dynamic Next.js page component that renders the article based on what is in the URL /article/[slug].

Prefer to read along as well? Here's the accompanying article.