Skip to content

Migration from /pages to /app router with Next.js > Get a 404 on homepage when deploying on Vercel #2391

Answered by lionelrudaz
lionelrudaz asked this question in Help
Discussion options

You must be logged in to vote

I've found the error. My PageComponent.tsx file was originally named Page.tsx. When I renamed it to create page.tsx for the homepage, GitHub thought it was the same file.

I had to run git mv Page.tsx page.tsx and voilà.

Hope this is helpful for n00bs like me 😅

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lionelrudaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
1 participant