1. 10
    Use getStaticPaths to Retrieve a List of Markdown Files to Render With Next.js
    3m 47s

Use getStaticPaths to Retrieve a List of Markdown Files to Render With Next.js

Share this video with your friends

Send Tweet

On our portfolio site, we definitely want to have the ability to render a list of articles, which preferably we'd want to write in Markdown. Whenever our user navigates to /articles/[slug] they should be presented with an article. In this lesson we learn about how Next.js page routing works and how we can leverage the getStaticPaths to read our list of markdown files and generate a new page for every article in the folder.

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