SIGN IN SIGN UP

fix(@angular/ssr): support server-side rendering configuration options

Introduce the ServerRenderingOptions interface to support configuring options such as maxResponseBodySize for server-side rendering.

- Clean up overloads of provideServerRendering to use the ServerRenderingOptions interface instead of inline anonymous types.
- Add an array-level type guard hasOptions to check for options arguments at runtime, allowing TypeScript to narrow the arguments union type automatically without the need for manual type assertions (casts).
- Update the JSDocs for the provideServerRendering overloads to document parameter options and include clear examples.
A
Alan Agius committed
21ca09882938b32d0a12f637e640682c13a9a266
Parent: b0e36d6
Committed by Alan Agius <alan.agius4@gmail.com> on 5/29/2026, 6:04:41 AM