I’m having trouble with my Twitter clone, specifically receiving a 404 error despite multiple attempts to push and clear the error. I’ve confirmed that the URL is correct, the deployment exists, the logs show no errors, and I have the necessary permissions. I’m using React.js, and after running the build command, the frontend/dist directory is created. My vercel.json configuration and project structure are set up correctly, but I’m still facing issues.
It looks like you’re deploying both the frontend and backend directories in the same project. That might be causing the files to have a different path than you expected. Please check the deployment output to make sure the URL is what you expect. Steps to do that are described in the debugging guide from the previous comment.
You used the react tag on the post, but what’s used for the backend portion of the app? I know Express is a common one, and it sometimes causes problems since it was designed for traditional servers rather than serverless.
There’s article an posted about how to use Express.js with Vercel. I recommend following that guide is your project uses Express. If it’s using a different framework, I’m happy to share more relevant resources. Just let me know!
I recommend taking your time to carefully read through the documentation. That will help you understand what to do. The Express.js deployment guide and Node.js runtime page are good resources to get you started.
Please let me know if you run into a specific question or problem. I don’t have time in my schedule for pair programming at present, but I’m happy to guide you to the right information to let you solve it on your own.