whenever i try to deploy to Vercel i get a 404 page, however when i run “npm run dev” on my local machine it works perfect
amyegan
(Amy Egan)
September 13, 2024, 3:50pm
2
We have a 404 debugging guide to help you investigate what’s causing the error. Can you give this a try and let me know what you find?
Sometimes things don’t go as expected when deploying a website. If you see a 404 on your site, that means the page or resource couldn’t be found.
There are many possible causes, and the absence of something can be tricky debug if you don’t know where to look. Here are some things you can do to find the cause and fix it.
Debugging Tips
Check the error code
If you see a mostly white screen with 404: NOT_FOUND along with a Code and and ID then you can click the blue info box below the error deta…
in my source i have /app/layout.tsx but on the output theres nothing. how would i go about fixing this, the guide only gives solutions for html. Thanks
adding a page.tsx and referencing that from layout.tsx fixed it