SSWConsulting / SSWConsulting/SSW.Website
💸 Tech debt - Multiple Error pages
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 14
- Forks
- 10
- Avg merge
- 13h 51m
- Merged PRs (30d)
- 38
Description
Description
There are three variants of the error page in the project:
- components/util/error/error.tsx
- components/util/error/error-page.tsx
- app/error.tsx
Reason
In Next.js, the Pages Router provides a custom 500 error page. However, as of this writing, there is no equivalent functionality for 500-level error handling in the App Router. As a result, we need separate variants of the error page to accommodate both routing systems.
For example:
- An App Router component for handling 404 errors & client-side exceptions
- A Pages Router component for 500-level responses.
Proposed Solution
- Monitor updates to the App Router for any new functionality supporting 500-level error handling. Keep an eye on the following discussion in particular: Next.js GitHub discussion #52378.
- When an app router component for handling 500 level responses becomes available, consolidate all of the error pages into one.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Compare components/util/error/error.tsx, components/util/error/error-page.tsx, and app/error.tsx to understand the three variants and their router roles. Review Next.js discussion #52378 for App Router 500-level error support; the work is done when that support exists and the variants can be consolidated into one error page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100