We’d like to create a blog (here’s the desired result), but so far we’ve added no blog content. In this lesson, we’ll learn how to fetch external blog data into our app. We’ll store the blog content in the file system, but it’ll work if the content is stored elsewhere (e.g. database or Headless CMS) .
In this lesson, you’ll learn about:
getStaticProps
and how to use it to import external blog data into the index page.getStaticProps
.