Tag: cloudflare

Fixing Stripe webhook invalid signature error on Cloudflare

If you're getting a 400 Bad Request with "Invalid signature" from your Stripe webhook on Cloudflare Workers or Cloudflare Pages, the actual problem might not be your webhook secret at all. The symptom# The Stripe webhook endpoint returns: 400 Bad Request Invalid signature In St…

Adding comments to my blog with D1 and Server Islands

For years I have been running this blog on Zola without any comment system. The static nature of Zola made adding comments non-trivial and I was not keen on third-party solutions like Disqus or Giscus. When I migrated to Astro (not yet published at the time of writing), the oppor…

Updated CloudFlare backup action

I've been using GitHub Actions to automatically backup my Cloudflare DNS records as JSON files for a while now. It's a simple but effective way to keep track of DNS changes and have a safety net in case something goes wrong. Recently, I decided to enhance this setup by also backi…

Fixing missing zola styles on Cloudflare Pages

I recently encountered a frustrating issue where syntax highlighting worked perfectly when running zola serve locally, but completely disappeared when deployed to Cloudflare Pages. Here's how I diagnosed and fixed the problem. The Symptoms# The issue manifested in two ways: Vi…

Cloudflare DNS backup action

Here's a quick Github Action a prompt blurted to periodically backup a Cloudflare DNS settings for all my domains and commit them into the repository. Zero maintenance required once set up: name: Cloudflare DNS Backup on: workflow_dispatch: schedule: - cron: "40 0 *…