blackmann / compa

🌁 scoodent companion. Stay on top of tertiary school lifestyle with modern experiences.
https://compa.so
58 stars 18 forks source link

add custom error page for unhandled errors/500 #51

Closed auxibee closed 6 months ago

auxibee commented 7 months ago

Try http://localhost:3000/discussions/400044 to see page

blackmann commented 7 months ago

Below are the designs for the error boundary:

404s aren't really a bad error so we shouldn't treat them as runtime or server errors. Could you make those distinctions. For errors that have status codes, we prefix the heading with the status code.

Let's log those errors to PostHog too. See: https://posthog.com/docs/getting-started/send-events#sending-custom-properties-on-an-event. You can capture relevant details along as you see fit.

In addition, we should show the footer on this page too.

Instagram post - 7 Instagram post - 6

auxibee commented 7 months ago

Okay I Will do That

blackmann commented 6 months ago

Thanks for this @auxibee

I change the icon to the mono one and add a dev mode log for stacktraces.

auxibee commented 6 months ago

Thank you too.