Configuration
Cache Components configuration
Application-wide opt-in for the new caching/rendering lane. Review incompatible segment options; not a universal cache-all switch. Source: https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheComponents
Formal Syntax & Structure
nextjs syntaxnextjs
cacheComponents: trueWorking Example
Example Snippetnextjs
import type { NextConfig } from 'next';const config: NextConfig = { cacheComponents: true };export default config;