getServerSideProps: with dynamic routing

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

You can change the ID to any number between 1-10000. Try it!

View code on GitHub

Show #305: Black Mirror

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

Type: Scripted
Language: English
Status: Running
Premiered: 2011-12-04
Official Site: https://www.netflix.com/title/70264888
Rating (average): 8.5


Go back home