Course lesson

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

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...

Duration
4 min
Access
Free
Transcript
Available

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.