DEVOPS

Batch-audit key routes on a Vercel preview before promotion

Runs Lighthouse across a list of critical routes on a Vercel preview, aggregates the worst scores, and blocks promotion if any single route breaches budget.

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerwebhook
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerVercel preview deployment readyVercelVercel
  • ActionRun Lighthouse on each critical routeBrowserbase
  • LogicAggregate worst score per category
  • ActionMark deployment promotable or heldVercelVercel
  • OutputPost per-route scorecard to TeamsMicrosoft Teams

What it does

A homepage that passes Lighthouse can hide a checkout page that fails. This workflow audits a configured set of critical routes on the preview, not just the root URL, and treats the gate as failed if any one route breaches its budget. It posts a per-route scorecard so you see exactly which page dragged the build down.

When to use it

Use this for multi-page apps where different routes have different risk profiles, like landing pages, pricing, and the signup flow. It prevents a green root-URL check from masking a slow but business-critical page.

How it works

  1. 1A Vercel deployment-ready webhook fires with the preview base URL.
  2. 2An action expands the configured route list and runs a Lighthouse audit for each route.
  3. 3A logic step aggregates results and finds the worst-performing route per category.
  4. 4If every route clears budget, the deployment is marked promotable in Vercel; if any route fails, promotion is held.
  5. 5A Microsoft Teams card posts the per-route scorecard with the failing routes highlighted.

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 Microsoft TeamsChannels, chats, files.
  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.