DEVOPS

Gate Vercel promotion on post-deploy Cloudflare cache-hit ratio

After a Vercel deploy finishes, watches the Cloudflare cache-hit ratio for a few minutes and either promotes the deployment to production or holds it and alerts when the ratio…

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerwebhook
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerVercel deployment succeeded webhookVercelVercel
  • ActionSnapshot baseline cache-hit ratioCloudflareCloudflare
  • ActionRe-sample ratio after bake windowCloudflareCloudflare
  • LogicBranch on cache-hit ratio delta vs threshold
  • ActionPromote deployment to productionVercelVercel
  • OutputPost hold + comparison to release channelSlack

What it does

This workflow turns a Vercel deploy into a guarded promotion. When a preview build finishes, it samples Cloudflare's cache-hit ratio across a short bake window, compares it to the pre-deploy baseline, and only promotes the build to production if cache performance held. A regression holds the deploy and pages the on-call engineer instead of silently shipping a cache-busting change.

When to use it

Use it when a bad cache key, header change, or routing rule can quietly drop your cache-hit ratio and hammer origin. It is for teams practicing progressive delivery who want an automatic, measurable gate between "built" and "live" rather than eyeballing dashboards after every push.

How it works

  1. 1A Vercel deployment-succeeded webhook fires for the preview build.
  2. 2Pull the current Cloudflare cache-hit ratio for the zone as a baseline snapshot.
  3. 3Wait out a bake window, then re-sample the ratio over the deploy's traffic.
  4. 4Branch: if the post-deploy ratio dropped more than the allowed delta, route to hold; otherwise route to promote.
  5. 5On pass, call Vercel to promote the deployment to production.
  6. 6On fail, post the comparison and a hold notice to the team's Slack release channel.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect VercelDeploys, runtime logs, analytics.
  2. 2
    Connect CloudflareWorkers, Pages, R2, KV — the edge stack.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.