Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💸 Tech debt - Multiple Error pages #3350

Open
Calinator444 opened this issue Nov 22, 2024 · 0 comments
Open

💸 Tech debt - Multiple Error pages #3350

Calinator444 opened this issue Nov 22, 2024 · 0 comments

Comments

@Calinator444
Copy link
Member

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.
@github-project-automation github-project-automation bot moved this to 🤷‍♂️ Needs Triage in SSW.Website Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🤷‍♂️ Needs Triage
Development

No branches or pull requests

1 participant