중요한 metric 셋
| Metric | 목표 | Next.js lever |
|---|---|---|
| LCP — Largest Contentful Paint | < 2.5s | SSR, image preload, streaming, edge caching |
| CLS — Cumulative Layout Shift | < 0.1 | next/image 가 space reserve, next/font 가 swap shift kill |
| INP — Interaction to Next Paint | < 200ms | Server Component 가 JS 줄임, React Transition 이 yield |
공짜로 받는 것
- Server Component — JS 덜 ship → TTI 더 빠름 / INP 더 좋음.
- Per-route 자동 code splitting — 추가 config 0.
next/image가 WebP/AVIF + responsive size 서빙.next/font가 font self-host, swap CLS 제거.가 default 로 prefetch.- Streaming + Suspense 로 perceived performance.
Measuring
CI 에서 Lighthouse 돌려. Real-user metric 위해 Vercel 의 @vercel/speed-insights 또는 본인 Web Vitals reporter 추가. Synthetic Lighthouse 는 sanity check; real user 가 진실.