rembrembdocs

Runtime Integration

Last updated April 23, 2026

The Deployment Adapter API is a build-time interface. It tells your platform what was built and how to route requests. Runtime behavior (request handling, streaming, caching) is handled by the Next.js server itself and by the cache interfaces cacheHandler and cacheHandlers.

Together, the adapter and cache interfaces form the complete platform integration surface:

Handler Context

When invoking entrypoints, adapters pass a ctx object to the Next.js handler. Key fields include:

PPR Chain Headers

In the prerenders output type, pprChain.headers contains the headers needed for the resume protocol. Specifically, it contains { 'next-resume': '1' }.

When your adapter detects a PPR-enabled route with a cached static shell:

  1. Set the pprChain.headers on the internal request to the Next.js handler.
  2. Send the request as a POST with the postponedState as the request body.
  3. The handler will render only the deferred Suspense boundaries and stream the result.

Good to know: In standard next start, the server handles both the shell and dynamic render in a single pass automatically. The resume protocol is useful for adapter-based deployments and CDN-to-origin architectures that want to serve the shell separately. See the PPR Platform Guide for the full implementation context.

Was this helpful?