by ryanjshaw · 5y ago · 0 comments
Search Console Live Test gives a vague 'General HTTP Error', Rich Results Test says the 'page is unavailable', Ad Words says 'Destination not working'. Bing indexes your site with no problems, and every device you and your friends own works fine, every uptime tester on the planet says you're good. Cloudflare shows no firewall events and logs are a 'contact us for pricing' Enterprise-only feature.
So what do you do - if Google thinks your serverless site doesn't exist, and you can't debug it because it's all magic? You can't do anything. Back to conventional hosting you go.
These days I try to make the case at work for targeting containers and using the cloud platforms' container hosting tools instead.
Not ideal, but it works fine.
I'm doing this with Cloudflare workers by sending access logs to a self hosted Matomo analytics and error logs to Loggly.
But in general, Cloudflare isn't really suitable yet for general app development. They need a lot of additional services for that to become viable, imo.
[1] Documentation for Workers Sites at https://workers.cloudflare.com/sites redirects to Pages
The workers act as a middleware. You can `fetch` the static content and then do any processing/logging you want.