This page uses getServerSideProps() to fetch either a TV show or a TV actor depending on whether preview mode is enabled.
The ID is set in the URL: /previewMode/:id
You can change the ID to any number between 1-10000. Try it!
View code for this page GitHub
View code for 'enter' API endpoint on GitHub
View code for 'exit' API endpoint on GitHub
You are currently not in preview mode. Enter preview mode.