DEVOPS

Purge Cloudflare cache when a Vercel production deploy succeeds

Listens for Vercel's deployment.succeeded webhook on the production target and triggers a full Cloudflare zone cache purge, then posts the result to Slack.

CategoryDevOps
Enginesim
Difficultybeginner
Triggerwebhook
Steps5
Setup~5 min

How it runs

The automated pipeline, trigger to output.

  • TriggerVercel deployment.succeeded webhookVercelVercel
  • LogicOnly continue if target is production
  • ActionCloudflare purge_everything for the zoneCloudflareCloudflare
  • LogicVerify purge response success
  • OutputPost purge confirmation to SlackSlack

What it does

When a Vercel production deployment finishes successfully, this workflow immediately purges the entire Cloudflare cache for your zone so visitors get the freshly deployed assets instead of stale cached HTML and JavaScript. It confirms the purge in Slack with the deploy URL and commit.

When to use it

Use it when your site sits behind Cloudflare in front of Vercel and you want zero manual steps between shipping and serving fresh content. Ideal for marketing sites and dashboards where a stale edge cache after deploy is a recurring support complaint.

How it works

  1. 1A Vercel webhook fires on `deployment.succeeded`.
  2. 2A logic step checks `target == production` and ignores preview and staging deploys.
  3. 3Cloudflare's purge_everything call clears the whole zone cache.
  4. 4The workflow reads back the purge response to confirm a `success: true` body.
  5. 5A Slack message reports the zone, commit SHA, deploy URL, and purge status to the 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.