I am encountering a 404 error, along with the correct content, in my Next.js 14 application. I have checked the folder structure, but I still don’t understand what the problem is. If I route to other pages, they work fine and do not show any errors. The problem occurs only when loading the home page.
enter image description here
This is the folder structure of my app:
Folder Structure
I’ve checked my code and everything seems to be in order, yet the 404 error persists. Any help or guidance would be greatly appreciated.
anandhi manickam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.