Next.js Discord

Discord Forum

404 not covering whole view

Unanswered
English Spot posted this in #help-forum
Open in Discord
English SpotOP
I tried copying this repository for the docs layout but my 404 page is not full like this one is there anything i am missing? I have copied it through and i am not really sure what's wrong
https://github.com/shadcn-ui/ui
This is my repository
https://github.com/BillGun/sitcom
Tried looking into nextjs docs it doesnt say anything about it either
https://nextjs.org/docs/app/api-reference/file-conventions/not-found
https://nextjs.org/docs/app/building-your-application/routing/error-handling
TIA!

Edit: Now looking at it, they probably throw the notFound() to root layout instead the nearest layout. is there any possible way to do it?

0 Replies