How I Cut Deploy Time from 8 Minutes to 90 Seconds
performanceweb-developmentnextjsneonvercel
I measured before I fixed
Deploys took 8 minutes. I ran vercel build --debug and saw 3 bottlenecks: cold cache, N+1 queries to Neon, and a 2.1MB bundle.
What I changed
- I enabled Vercel build cache and pinned Node 22.
- I switched to Neon pooled driver and added statement cache.
- I split heavy charts with dynamic import and cut bundle to 1.2MB.
Result
Build 90 seconds, LCP 1.1s, p95 query 12ms. The dashboard now shows deploy time per commit. When the number goes up, I know where to look.