Error Handling
⚠️ Graceful Handling of JavaScript and 404 Errors¶
-
JavaScript errors are handled elegantly using the top-level component:
/app/error.js -
404 (Not Found) pages are also managed smoothly via the component:
/app/not-found.js
🧩 What Happens When an Error Occurs¶
-
A clean, user-friendly error page is displayed, and users can reach out to support through the
<ButtonSupport />component. -
By default, the support button opens Crisp live chat (if
crisp.idis configured in theconfig.jsfile).
📘 See the guide for setting up Crisp.
- If
crisp.idis not set inconfig.js, the support button will instead open the user’s email client using amailto:link, so they can contact your support address (resend.supportEmailinconfig.js).