Next.js Discord

Discord Forum

How to figure out why a page returns 404?

Unanswered
Australian Freshwater Crocodile posted this in #help-forum
Open in Discord
Australian Freshwater CrocodileOP
I have a page that is returning 404.
GET /page/random-id 404 in 633ms

However the page ends up rendering just fine. I can't find a reason for the 404. Is there a verbose mode somewhere that tells me why there is a 404? The only clue I have is that I have slots in the page. But they are all rendering fine in the end.

3 Replies

Australian Freshwater CrocodileOP
It’s a looooot of code to share here. There are like 20 files and 6 folders involved. So I was hoping to get some tips to debug myself.