I’ve been using PayloadCMS for the last few months and it seems that no matter what I do, no matter how many times I deploy and redeploy they always fail. The only time it is ever successful is when i install via the template section. I’m at my wits ends already. With the last deployment - I now am faced a 404 - theres no error messages, nothing in the log files either.
There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.
A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.
The 404 debugging tips linked above should help. But these are some other fairly common issues people run into with PayloadCMS deployments:
- Database connection - Make sure your MongoDB or other database connection is properly configured in environment variables
- Missing build commands - PayloadCMS typically needs specific build commands to generate the admin panel
- Server vs static rendering - PayloadCMS requires a Node.js server environment
Hi Amy
Thank you for the reply. I successfully deployed the PayloadCMS from the Templates section - so the database connection strings were fine and for the last month or so while I was working on the site locally everything was fine.
I uploaded files which had no bearing on the database and BOOM all of a sudden a 404 - I’m beginning to think that the issue is with Vercel
Where do you see the 404? If you can share a screenshot of the error code, that could give us more clues about what’s going wrong. If you can share the production deployment where you see the 404 error, that would let us interact with the page for a better view of the problem.