Fetch data from REST API in Next.js during build time to create pages in server side using getStaticProps.
In this Next.js project tutorial, you’ll learn how to fetch data in Next.js using getStaticProps. The video focus on the following points
- How to fetch data using getStaticProps
- Why use getStaticProps