Create blog posts and articles with Next.js and Strapi

Опубликовано: 28 Сентябрь 2024
на канале: Full Human
3,025
56

In this video, let's build an article page with Next.js and Strapi. We are going to focus on the connection between Strapi and Next.js. The first important part of understanding is how static generation can be achieved with Next.js.

Two functions are essential, getStaticPaths and getStaticProps. The first function is used to get the list of paths/pages we want Next.js to build while getStaticProps is used to get the props based on the path.

Link to the repository:
https://github.com/Ffloriel/Tutorials...

Chapters:
0:00 Introduction
1:13 Static generation with Next.js
2:54 Create the "Posts" Content Type in Strapi
5:34 Next.js getStaticPaths
7:14 Next.js getStaticProps
8:30 Rest of the page
9:34 Outro

Medium:
  / membership