next.js
40bd7bce - Fix deployed RSC responses after static-to-partial revalidation (#101454)

Commit
20 days ago
Fix deployed RSC responses after static-to-partial revalidation (#101454) After a fully static Cache Components route regenerated as partial, adapter deployments returned empty RSC responses. The platform supplied new postponed state, but the handler still trusted the build-time `prefetchDataRoute` and stripped Flight headers. Navigations failed with React #412 and fell back to document loads. Runtime prefetches and runtime shells also failed to receive their request data. The handler now uses supplied postponed state to select dynamic RSC rendering in minimal mode. That state takes precedence over the build-time static RSC signal. The handler preserves Flight headers so the renderer honors the caller's router state and requested prefetch stage. It produces fresh RSC and can reuse the Resume Data Cache from the supplied state. PR #101357 addresses this same static-to-partial revalidation case for `next start` as part of its broader RSC cache handling changes. The deploy regression suite uses real router interactions to cover navigation, runtime prefetches, and runtime shells after revalidation, including caller-specific cookies and prefetch stage boundaries.
Author
Parents
Loading