本文へスキップ
Kitbay
スキル

next-partial-prefetching-adoption

MIT2026年11月11日 更新143,470GitHubスター

A skill published in the Next.js repository for switching an app to Partial Prefetching, so links reuse a shared app shell. It needs Next.js 16.3 or later with Cache Components already on and a passing build.

スキルの内容

A skill published in the Next.js repository for switching an app to Partial Prefetching, so links reuse a shared app shell. It needs Next.js 16.3 or later with Cache Components already on and a passing build. With the flag still off, the agent audits every link that forces a full prefetch, agrees with the user which UI must stay instant, and records a baseline with instant() tests on a production-like build. It then opts destination routes in, turns on the partialPrefetching flag, removes the temporary route exports with a codemod and, in next dev, fixes insights about URL data read outside a Suspense boundary. It finishes with production checks and a report.

できること

  • Audit links that force full prefetching
  • Record a baseline with instant() tests
  • Enable the partialPrefetching flag with a codemod
  • Fix URL-data insights with Suspense boundaries