angular/angular
@angular/ssr
A thin re-export shell for the SSR adapter. The bulk of SSR functionality lives in @angular/platform-server and the build-tool integration in @angular/build (shipped from the angular/angular-cli repo). @angular/ssr is the public API surface most apps import.
Purpose
@angular/ssr provides:
- The
AngularNodeAppEngine/AngularAppEngineclasses that adapt rendered HTML for use behind an Express, Hono, or Cloudflare Workers handler. - Helpers for static site generation (SSG) builds.
- Stable re-exports of the underlying server-rendering APIs.
This package exists primarily as a stable import surface so application code doesn't depend directly on platform-server internals.
Directory layout
packages/ssr/
├── public_api.ts # Re-exports
└── ...The package itself is mostly stubs (~26 lines of TypeScript). The active code lives in @angular/build (CLI repo) and @angular/platform-server.
Status
Versioned within the CLI release cycle (22.0.0-next.6 at this writing). Apps that use server-side rendering depend on this package, but contributors making framework changes typically work in platform-server instead.
Entry points for modification
- For SSR runtime changes: see
packages/platform-server. - For SSR build-system changes: contribute to
angular/angular-cli's@angular/buildpackage. - For the public API surface here: edit
packages/ssr/public_api.tsand update the matching golden.
Built by Factory AutoWiki from public repository content. It is a generated preview for codebase exploration, not source-maintained documentation.