DEVOPS

Verify edge freshness after purge and roll back Vercel if stale

After purging Cloudflare on a production deploy, probes the live edge for the new build hash and, if the edge still serves the old build past a retry window, rolls the Vercel…

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerwebhook
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerVercel production deploy succeededVercelVercel
  • ActionCloudflare purge_everythingCloudflareCloudflare
  • ActionProbe live edge for new build hashShell
  • LogicBranch on stale vs fresh after retries
  • ActionPromote previous Vercel deploy (rollback)VercelVercel
  • OutputPage on-call via PagerDutyPagerDutyPagerDuty

What it does

This is a self-healing release guard. After a Vercel production deploy, it purges Cloudflare and then actively probes the public edge to confirm it is serving the new build. If the edge keeps returning the old build fingerprint after several retries, it promotes the previous Vercel deployment back to production and escalates to PagerDuty.

When to use it

Use it for revenue-critical apps where a deploy that silently fails to propagate is worse than a delayed deploy. It turns a stuck cache into an automated rollback instead of a 2 a.m. manual investigation.

How it works

  1. 1Vercel `deployment.succeeded` for production triggers the run.
  2. 2Cloudflare purge_everything clears the zone.
  3. 3A shell step curls the live URL repeatedly, checking the response for the expected build hash.
  4. 4A logic branch decides: hash matches means done; still stale after the retry budget means degraded.
  5. 5On failure, Vercel promotes the prior deployment back to production.
  6. 6PagerDuty receives an incident with the probe evidence and rollback target.

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 ShellRun sandboxed commands inside the workspace.
  4. 4
    Connect PagerDutyIncidents, on-call, escalations.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    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.