Blog

Next.js useSelectedLayoutSegment
Every layout in the App Router renders a children prop it doesn't fully control — the actual page or nested layout underneath it is decided by what
Dive Deeper
Next.js useSelectedLayoutSegments
Breadcrumbs look like a solved problem until you actually try to build them inside a nested layout system. You can't just split `window.location.path
Dive Deeper
Next.js Using a CDN with Next.js
Putting a CDN in front of a Next.js app sounds like a five-minute job. Point your DNS at Cloudflare or Fastly, flip on caching, and enjoy sub-50ms re
Dive Deeper
Next.js Using Sass
This project runs on Tailwind CSS 4, which is worth saying upfront since it means everything in this article describes a path this specific codebase
Dive Deeper
Next.js Using and optimizing videos
Images get a dedicated, highly-optimized next/image component with automatic format conversion, resizing, and lazy loading built in. Video gets no
Dive Deeper
Next.js Designing view transitions
Route changes on the web have historically had no visual continuity — one full set of elements disappears, an entirely unrelated set appears, and not
Dive Deeper