DEVOPS

Nightly Production Bundle-Size Trend Report

On a nightly schedule, records the production deployment's bundle sizes to a time-series table and emails a trend report flagging routes that have crept upward over the trailing…

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerschedule
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNightly schedule fires
  • ActionFetch production bundle statsVercelVercel
  • ActionAppend measurements to history tablePostgreSQLPostgres
  • LogicCompute 14-day per-route growth
  • OutputEmail trend report to eng leadGmailGmail

What it does

Tracks slow bundle creep that per-PR gates miss. Each night it captures the current production build's per-route bundle sizes, appends them to a history table, and produces a trend report highlighting any route that grew more than your tolerance over the last 14 days, then emails it to the engineering lead.

When to use it

Use it when individual PRs each stay under budget but the app keeps getting heavier month over month. This gives you the long-range view and an early warning before a route blows its budget.

How it works

  1. 1A nightly schedule triggers the run.
  2. 2The flow fetches the latest production deployment's bundle stats from Vercel.
  3. 3It inserts today's measurements into a Postgres time-series table.
  4. 4A logic step queries the trailing 14-day window and computes per-route growth.
  5. 5It flags routes exceeding the creep tolerance.
  6. 6An email goes to the engineering lead with the ranked growth table and sparkline data.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect VercelDeploys, runtime logs, analytics.
  2. 2
    Connect PostgresAny Postgres URL — query, write, migrate.
  3. 3
    Connect GmailRead, draft, send, label.
  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.