next.js
07341d17 - [Experiment] Add the experimental.nativeRscRuntime flag

Commit
3 days ago
[Experiment] Add the experimental.nativeRscRuntime flag This is scaffolding for an experiment, not the experiment itself. The native RSC runtime is a highly experimental, alternative runtime for rendering React Server Components on the server. It changes how Next.js renders a page's Server Components, not how they're written: components stay ordinary React, and nothing changes for client components or in the browser. Nothing works yet. This adds the flag that will opt an app into the runtime, and on purpose nothing reads it: the stack builds the runtime up in small steps, and the next one, the segment export that opts a page in, is the first to read it. It requires Turbopack, because the route entry for a page on the runtime is generated by Turbopack's build. It also requires Cache Components and Partial Prefetching: the runtime targets only the rendering model those two give App Router, a conservative limit that keeps the experiment to one set of semantics. Config validation checks all three, the way it checks the other flags that depend on another flag or on Turbopack.
Author
Committer
Parents
Loading