Home > Issues > 2
Page / 404 page for shows
Type | Effort (Fibonacci) |
---|---|
Bug | 2 |
Right now, visiting a URL such as localhost:3001/show/meet-the-muppets throws an error when trying to map over an undefined property artists
. It should throw a 404 error, as no show with the slug
“meet-the-muppets” exists.
Error
Design
Acceptance criteria
- When no show is retrieved from
getShowBySlug
, page at/show/[slug].js
throws a 404- See documentation on
notFound
in this section of Next.js docs
- See documentation on
- Custom 404 page is shown for shows that don’t exist, like localhost:3001/show/meet-the-muppets or localhost:3001/show/bill-nye-the-science-guy-live
- Looks like design above