LabscoMCP early access ↗
vercel avatar✓ Official

next-cache-components-optimizer

Local tool required★ 140k on GitHub
part of vercel/next.jsby vercel

Makes a Next.js page appear instantly — as much of it as possible already rendered before the visitor arrives — and leaves behind an automated test that fails if it ever stops being instant.

WHEN TO USE

SCOPE

USE FOR

  • Make a page's navigation instant by growing what its static shell prerenders.
  • Find which Suspense boundary is keeping a route's content out of its shell.
  • Write the instant() end-to-end test that guards a route against a future regression.
  • Diagnose a shell that renders but stays blank because of a fallback={null} boundary.
  • Fix a shared layout whose top-level await blocks every route beneath it.
  • Check whether a route's shell still matches the real render on mobile widths.

NOT FOR

  • Turning on Cache Components or fixing a build that doesn't compile yet — that's next-cache-components-adoption.
  • Speeding up a soft navigation with per-link prefetching — that's next-partial-prefetching-adoption's job.