Replies: 2 comments
-
Customize the 404 Page in App RouterYou define a
If you want route-specific 404s:
Sample
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I think you can still use // app/not-found.tsx
'use client';
import Error from 'next/error';
export default function NotFound() {
return <Error title="Not Found oops" statusCode={404} />;
} To lightly customize the component, then yeah, you'd use it at |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I really like the look of Next.js's default 404 page. For example, here: https://nextjs.org/404
However, it would be great if I could customise the code to use it for other error pages. Where can I find this page's Next.js code?
Beta Was this translation helpful? Give feedback.
All reactions