DEV Community

vw
vw

Posted on

Problem using home as a page name in next.js

Hi, I am new to next.js. To add a page i made a folder with name 'home' and then created an index.js file in it.
when i got to localhost:3000/home it gives error '404 | This page could not be found' but if i change the 'home' to some other name, for example 'test' then the route localhost:3000/test works fine.
Please advise that we cannot create a page with name 'home' in next.js ?

Top comments (0)