Constantly getting 404 page on deployment

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

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?

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

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.