You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm migrating my app from the /pages to the /app router.
Everything is going smoothly so far, up to the point that I'm trying to migrate the home page. I've created a page.tsx file in the /app directory, everything is pervect locally. The build retrieves no error and shows the / page as a static page
When I deploy on Vercel, all routes work, except the homepage, which raises a 404 error.
I've checked the build, there's no / page.
I've checked the outcome source. there's no index page.
Here's the structure of my /app folder
Describe the Bug
Exploained in the steps to reproduce
Expected Behavior
The homepage should work and not retrieve a 404 error 😅
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Vercel with Github
The text was updated successfully, but these errors were encountered:
lionelrudaz
changed the title
404 error on homepage when deploying on Vercel
404 error on homepage when deploying on Vercel, no page available in source after build process
May 10, 2023
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.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.4.0: Mon Mar 6 21:01:02 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8112 Binaries: Node: 19.1.0 npm: 8.19.3 Yarn: 3.3.0 pnpm: 8.4.0 Relevant packages: next: 13.4.2-canary.3 eslint-config-next: 13.0.7 react: 18.2.0 react-dom: 18.2.0 typescript: 4.8.4
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue
https://github.com/lionelrudaz/tasters/tree/app-router
To Reproduce
Hey folks,
I'm migrating my app from the /pages to the /app router.
Everything is going smoothly so far, up to the point that I'm trying to migrate the home page. I've created a page.tsx file in the /app directory, everything is pervect locally. The build retrieves no error and shows the / page as a static page
When I deploy on Vercel, all routes work, except the homepage, which raises a 404 error.
I've checked the build, there's no / page.
I've checked the outcome source. there's no index page.
Here's the structure of my /app folder
Describe the Bug
Exploained in the steps to reproduce
Expected Behavior
The homepage should work and not retrieve a 404 error 😅
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Vercel with Github
The text was updated successfully, but these errors were encountered: