← statichum.studio

Pre-Launch Next.js And Astro Cost-Trap Linter That Flags Unbounded ISR, Greedy Image Optimization, And Edge-Function Fan-Out Before They Generate The First Vercel Bill

dev tool weekend hack •• multiple requests

Vercel's Spend Management caps the bleeding at $200 by default but only after you've already shipped the cost trap... unbounded ISR pages, image optimization without a sane limit, edge functions that fan out to N origins, or middleware that runs on every static asset. The gap is a linter (npm run check-cost) that reads your next.config.js, your route handlers, your loaders, your image components, and your middleware, then emits a 'this configuration will cost roughly $X/month at the traffic profile in your last analytics report' alongside the specific lines to fix. Static-time analysis only, no runtime probe required.

builder note

Skip the Vercel API. Read the project config statically, pair it with the user's existing analytics CSV (Plausible, GA exports work fine), and output a single 'estimated monthly bill if you ship today' number. That number is what wins on Hacker News. The line-by-line fix suggestions are what gets you paid.

landscape (3 existing solutions)

Reactive budget alerts and 'just use Cloudflare' guides are the only options today. There's no static-analysis tool that reads a Next.js/Astro codebase and predicts cost shape against a traffic estimate before a single byte ships.

Vercel Spend Management Reactive. Sends alerts at 50/75/100% of a budget you set after the bill is already accruing. Does not preview cost from your codebase or config before deploy.
@next/bundle-analyzer Tells you about JS bundle size, which is performance, not cost. Says nothing about ISR cadence, image transforms per page, or middleware fan-out.
Cloudflare Pages migration guides Tells you how to leave Vercel. Doesn't help the indie who wants to stay because of DX but stop bleeding.

sources (4)

other https://journeywithibrahim.medium.com/vercel-bill-shock-from... "Vercel Bill Shock: From $700 to $120." 2026-01-22
other https://blog.vibecoder.me/vercel-vs-netlify-vs-cloudflare-pa... "A media-heavy launch can burn through the credit in a single afternoon." 2026-04-02
other https://devtoolpicks.com/blog/best-vercel-alternatives-indie... "Vercel's $0.15/GB bandwidth overages and per-seat fees add up fast." 2026-03-18
twitter https://x.com/theburningmonk/status/1798703655908192570 "Another Vercel billing surprise." 2026-04-30
nextjsvercelcost-controlstatic-analysisindie-hacker