GuidesError Handling
JavaScript errors are handled gracefully in the /app/error.js
high-level component. Error 404 (not found) is handled gracefully in the /app/not-found.js
high-level component.
When an error occurs, a beautiful page is shown and users can reach out to support through the <ButtonSupport />
component.
By default, it will open the Crisp customer chat (if crisp.id
is present in /config.js
). Here's the tutorial to set up Crisp.
If crisp.id
is not setup in the /config.js
file, it will open the user's mail client (mailto:
) and let the them send an email to your support email (mailgun.supportEmail
in /config.js
)