Limited offer: $250 off for the first 200 customers!Claim discount

Error Handling

JavaScript errors and missing pages are caught automatically and shown as clean, user-friendly screens.

How it works

Next.js routes unexpected runtime errors through src/app/error.tsx and missing pages through src/app/not-found.tsx. Both are already set up — you don't need to do anything.

Error page

When a JavaScript error is thrown anywhere in the app, error.tsx takes over and shows a full-screen message with two options: Try again(calls Next.js's reset() to re-render the page) and Contact support (opens a mailto: to config.mail.supportEmail).

404 page

When a user visits a URL that doesn't exist, not-found.tsx displays a clean 404 screen with your logo, a short message, and the same Contact support link.

Change the support email

Both pages read the email address from config.mail.supportEmail in src/config.ts. Update it there and it will apply to both pages automatically.