getStaticProps: with dynamic routing

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

Because the page uses dynamic routing, the list of paths are pre-defined in getStaticPaths.
For this page, you can change the ID to any number between 1-100. Try it!

View code on GitHub

Show #66: The Big Bang Theory

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

Type: Scripted
Language: English
Status: Ended
Premiered: 2007-09-24
Official Site: http://www.cbs.com/shows/big_bang_theory/
Rating (average): 7.9


Go back home