runtime-rundown / podcast-site

Powering the runtime rundown podcast site
runtime-rundown.vercel.app
8 stars 0 forks source link

500 page should be 400 #11

Closed helloitsjoe closed 1 year ago

helloitsjoe commented 1 year ago

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' in getStaticPaths, I think we will need to return { notFound: true } in getStaticProps if we don't find an episode (see this blog post)