Description
The project currently has a custom 404.js page for "Not Found" errors, which is great! However, we are missing a custom 500.js page. If the server encounters an unexpected error, users will see the default Next.js server error page, which breaks the immersion and design consistency of HEALCONNECT.
Expected Behavior
When a server-side error occurs, the user should be redirected to a custom 500 error page that matches the theme of HEALCONNECT. It should include a friendly error message and a button to return to the Home page or Dashboard.
Tasks
Tech Stack
- Next.js
- Tailwind CSS / SCSS
Additional Context
You can reference the existing pages/404.js to see how the layout and styling are currently structured.
Description
The project currently has a custom
404.jspage for "Not Found" errors, which is great! However, we are missing a custom500.jspage. If the server encounters an unexpected error, users will see the default Next.js server error page, which breaks the immersion and design consistency of HEALCONNECT.Expected Behavior
When a server-side error occurs, the user should be redirected to a custom 500 error page that matches the theme of HEALCONNECT. It should include a friendly error message and a button to return to the Home page or Dashboard.
Tasks
pages/500.jsfile.404.jsstyling and overall branding.Tech Stack
Additional Context
You can reference the existing
pages/404.jsto see how the layout and styling are currently structured.