Next 16 - Route segment config "dynamic" is not compatible with nextConfig.experimental.cacheComponents. Please remove it.
#84894
Replies: 3 comments 1 reply
-
|
Mmm I think you are looking for https://nextjs.org/docs/app/api-reference/functions/connection Put it at the opt of the page, that means, don't pre-render past this point, await for a runtime incoming request. |
Beta Was this translation helpful? Give feedback.
-
|
In Next.js 16, the dynamic route segment config has been replaced by the new static/dynamic rendering model using cache and revalidate. The dynamic config isn’t compatible with experimental.cacheComponents, so you’ll need to remove it and rely on these new route-level exports instead. This gives you the same flexibility without enabling PPR globally. |
Beta Was this translation helpful? Give feedback.
-
|
In Next.js 16, the There’s currently no per-route replacement for The Next.js team is still refining selective opt-out behavior, so finer-grained control may return in a future release. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the replacement for Route segment config? I don't want to enable PPR for all of my routes.
Beta Was this translation helpful? Give feedback.
All reactions