question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add better and more helpful error pages

See original GitHub issue

The Explorer should have customized error pages, for example the generic 404 page with links to the most common pages, or when a 500 error happens we should probably catch it and display something a bit friendlier than the default Next.js error page. Next.js has an easy way to add a custom 404 page, and a custom page for 500 errors: https://nextjs.org/docs/advanced-features/custom-error-page

We can also use notFound in getStaticProps to display a custom 404 page for different types of pages. For example if someone went to /blocks/40000000, we could show a “This block doesn’t exist yet. The newest block is block x.” or something like that.

This functionality should be fairly straightforward to add, and nothing too special is required in terms of design—these error pages can reuse the layout components so that they will still have the nav bar and footer.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
danielcolinjamescommented, Feb 17, 2021

hey @Astrochamp and @SourishS17 , any updates on the progress of this issue? 😃 if you haven’t finished or got busy with other projects you could always open a draft PR so someone else can pick up where you left off

1reaction
danielcolinjamescommented, Feb 18, 2021

awesome! great to hear. please let me know if you want any design input or anything! I think you could probably reuse the <AppLayout> component on the error page files so that they’ll still have the nav bar and footer included

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Best 404 Pages: 37 Examples You Need to See
Your 404 page should show off your creativity and personality – and help users. Here are 37 awesome examples of 404 pages to...
Read more >
40 Clever 404 Error Pages From Real Websites - HubSpot Blog
Inspire your own designs by taking a look at some of the best 404 error messages on the web.
Read more >
The best 404 pages for genius web design inspiration
These 404 pages showcase wit, tech wizardry and great UX.
Read more >
404 page design: best practices and awesome examples
Your 404 error page is an opportunity to showcase some creativity and get the user on your path. Something went wrong, but everything's...
Read more >
Tips for better 404 error pages — with examples - UX Planet
A good 404 error page should show your user that even when things aren't going right, everything's going to be fine. Error pages...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found