Getting 404 not found when creating subfolder page named 'index'.
Answered
Mossyrose gall wasp posted this in #help-forum
Mossyrose gall waspOP
Hello, when i create page named index i am getting 404 error after vercel deploy. my app folder looks like this:
Answered by fuma
Page named index will conflict with your
page.tsx page under about, you should rename it4 Replies
Page named index will conflict with your
page.tsx page under about, you should rename itAnswer
Mossyrose gall waspOP
so i cannot create page named about/index? @fuma? thank you for reply
Correct, because
about/page.tsx and about/index/page.tsx has the same URL, this will cause error on buildMossyrose gall waspOP
thank you @fuma