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

Custom error page #34

Open
JosueHernandezR opened this issue Dec 7, 2023 · 3 comments
Open

Custom error page #34

JosueHernandezR opened this issue Dec 7, 2023 · 3 comments

Comments

@JosueHernandezR
Copy link

🚀 Feature Proposal

Custom error page implementation

Motivation

I have searched for documentation to solve the detail but there is no clear solution where customized and translated error messages are implemented.

Example

An example would be when using search for a route that does not exist within the project.

@adrai
Copy link
Member

adrai commented Dec 7, 2023

#6

@JosueHernandezR
Copy link
Author

#6

The proposed solution does not work for me, because it does not render the created page.
I have tried to create the NotFound page within the App folder and it is rendered, but when creating styles it shows the error about the lack of the layout.js or layout.tsx file, as the case may be.
Another attempt I made was to create the file within the lng folder but it is not taken into account and renders the error page by default.

@adrai
Copy link
Member

adrai commented Dec 8, 2023

Seems this is not really "finished" by the next.js team... you may want to ask them directly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants