Reputation: 800
After upgrading my Next.js version to Next 11.1.2 My Homepage is redirecting me to a 404 Not Found page while other routes are still working as expected.
I don't have anything specific in my app.js
that would block my homepage.
Upvotes: -2
Views: 2264
Reputation: 800
After a lot of struggle to figure out why the home/index.page was not loading for me . I figured out my index.jsx was inside a folder called index, and Next.js would not recognize that as the starting point of the application. As I took the file out of the folder and placed index.jsx directly under Pages folder , it started working like a magic.
Hope this is of some help to somebody else.
Upvotes: 1