Next.js Discord

Discord Forum

How Can I Custom 404 and 500 page ?

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
Recently I learn when we put in pages, should be work.. but.. now is not working '-'

5 Replies

@Asian black bear Recently I learn when we put in pages, should be work.. but.. now is not working '-'
try app/not-found.jsx for 404
and app/global-error.jsx for 500
@Ray try `app/not-found.jsx` for 404 and `app/global-error.jsx` for 500
Asian black bearOP
Thanks @Ray I try this, don't work.. but.. I changed to not-found, and I put in (authenticated) where there is a layout so.. now is running 'o'/
@Ray oh do you call `notFound()` in the page?
Asian black bearOP
oh ok your root layout is here