Closed helloitsjoe closed 1 year ago
When I visit a page that doesn't exist, e.g. https://runtimerundown.com/episodes/not-an-episode, we see a 500 error
I would expect to see a 404 page.
Since we're using fallback: 'blocking' in getStaticPaths, I think we will need to return { notFound: true } in getStaticProps if we don't find an episode (see this blog post)
fallback: 'blocking'
getStaticPaths
{ notFound: true }
getStaticProps
What happens?
When I visit a page that doesn't exist, e.g. https://runtimerundown.com/episodes/not-an-episode, we see a 500 error
What were you expecting to happen?
I would expect to see a 404 page.
Details
Since we're using
fallback: 'blocking'
ingetStaticPaths
, I think we will need to return{ notFound: true }
ingetStaticProps
if we don't find an episode (see this blog post)