getStaticProps: with fallback: true

This page uses getStaticProps() to fetch a TV show from an API.
The ID is set in the URL: /getStaticProps/withFallback/:id

The page uses dynamic routing and some paths are pre-defined in getStaticPaths (IDs 1-10).
If you request one of those pages, you will see the pre-rendered HTML page.
If you load this page with any other ID (e.g., 32), the page will be rendered server-side by a Netlify Function.

View code on GitHub

Show #5: True Detective

https://api.tvmaze.com/shows/5

Type: Scripted
Language: English
Status: To Be Determined
Premiered: 2014-01-12
Official Site: http://www.hbo.com/true-detective
Rating (average): 8.3


Go back home