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

[✨] Customize 404 not found page #2345

Closed
jonsam-ng opened this issue Dec 2, 2022 · 2 comments
Closed

[✨] Customize 404 not found page #2345

jonsam-ng opened this issue Dec 2, 2022 · 2 comments
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: enhancement New feature or request

Comments

@jonsam-ng
Copy link

jonsam-ng commented Dec 2, 2022

Is your feature request related to a problem?

I want to customize the 404 error page, but I cannot find a solution in the documentation. I remember in NextJS we create pages/404.js file that can reach the goal, Link is here.

Describe the solution you'd like

Maybe creating a 404.js file in routes directory and export a custom component is good.

Describe alternatives you've considered

I do not know is there any other solution like catching 404 router errors exist, but I do think this feature is quite common.

Additional context

No response

@jonsam-ng jonsam-ng added TYPE: enhancement New feature or request STATUS-1: needs triage New issue which needs to be triaged labels Dec 2, 2022
@zanettin
Copy link
Collaborator

zanettin commented Dec 2, 2022

Hi @jonsam-ng
Thanks for creating this feature request 🙏

Looks like this request was already raised before on #2285 and #1560. @adamdbradley also started to work on it on #2175. i also gave it a spin but i am not able to confirm that a custom 404 page is rendered as described in the PR. hope they will finish the work soon 🙏

If you think that one of the above mentioned feature requests cover your input, feel free to close your issue. Otherwise keep it open 🙏

@jonsam-ng
Copy link
Author

Thanks for your response, I think this PR is enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants