500 Error when Deploying Website

Hi, I am facing an issue when I am updating my github repo (which is tied up to my web deployment) I am getting a random 500 error (as shown in the first image attached). This is happening when I deploy (push code onto my github repo) new code or when I deploy (copy the old code which was working before and pushed that back onto my github repo) previous version of the code before I made new changes (when the deployment was working fine). Only when I rollback the deployment to the old working version then my website would work and not have the 500 error. Also every push I make on cloudflare, log say its good and makes the build live without any issues. I have tried different deployment platforms (render and vercel, as shown in the second image attached) and I am not getting the same issue (any and all new deployments work and display our website live). Why is this happening? Would love any help or advice please!
No description
No description
3 Replies
Walshy
Walshy4w ago
?pages-logs
SuperHelpflare
If you're looking to tail a Pages Function you can do so in the UI here: https://dash.cloudflare.com?to=/:account/pages/view/:pages-project/:pages-deployment/functions or with Wrangler: wrangler pages deployment tail [deploymentId/url]
Walshy
Walshy4w ago
Looking at logs are your best bet.

Did you find this page helpful?