DEVOPS

Web Vitals Lighthouse Gate on Preview Deploys

Runs a Lighthouse audit against each new Vercel preview URL, compares LCP, CLS, INP, and TBT to thresholds.

CategoryDevOps
Enginesim
Difficultyadvanced
Triggerwebhook
Steps5
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerVercel preview deployment readyVercelVercel
  • ActionRun Lighthouse audit on preview URLBrowserbase
  • LogicCompare LCP/CLS/INP/TBT to thresholds
  • ActionWrite GitHub check run with resultsGitHubGitHub
  • OutputPost regression deltas to SlackSlack

What it does

Measures real Core Web Vitals on every preview deployment and gates promotion on them. After Vercel publishes a preview URL, the workflow drives a headless browser to run a Lighthouse-style audit, scores LCP, CLS, INP, and TBT against your thresholds, and reports back as a GitHub check so regressions can't be merged silently.

When to use it

Reach for this when bundle size alone misses the picture and you want field-relevant performance metrics enforced per PR. Good for marketing and conversion pages where Web Vitals affect SEO and revenue.

How it works

  1. 1A Vercel deployment-ready webhook delivers the new preview URL.
  2. 2A browser automation step loads the URL and captures Web Vitals via a Lighthouse run.
  3. 3A logic step compares each metric to its threshold and records which failed.
  4. 4It writes a GitHub check run with the metric table in the summary.
  5. 5If any metric regressed, it posts the before/after numbers to Slack for the team.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect VercelDeploys, runtime logs, analytics.
  2. 2
    Connect BrowserbaseHeadless browsers, sessions, replays.
  3. 3
    Connect GitHubRepos, issues, pull requests, actions.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  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.