前端开发

next-cache-components

vercel-labs/openreview

Next.js 16 Cache Components - PPR, use cache directive, cacheLife, cacheTag, updateTag

  • 1879 次安装
  • 1700 星标
  • 收录于

安装命令

npx skills add https://github.com/vercel-labs/openreview --skill next-cache-components

SKILL.md

Cache Components (Next.js 16+)

Cache Components enable Partial Prerendering (PPR) - mix static, cached, and dynamic content in a single route.

Enable Cache Components

// next.config.ts
import type { NextConfig } from 'next'

const nextConfig: NextConfig = {
  cacheComponents: true,
}

export default nextConfig

This replaces the old experimental.ppr flag.