Skip to content

Chapter 10: Implementing Partial Prerendering presents an outdated next.config.ts experimental config option #1114

@jfrumar

Description

@jfrumar

Under the heading Implementing Partial Prerendering, the config needs to be updated. Currently when running pnpm dev one receives:

> dev
> next dev --turbopack

[Error: `experimental.ppr` has been merged into `experimental.cacheComponents`. 
The Partial Prerendering feature is still available, but is now enabled via `experimental.cacheComponents`. 
Please update your next.config.ts accordingly.]

It appears that:

const nextConfig: NextConfig = {
  experimental: {
    ppr: 'incremental'
  }
};

should be changed to:

const nextConfig: NextConfig = {
  experimental: { 
    cacheComponents: true, 
  }
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions