Skip to content

docs: a guide to running streamed pages in production - #114

Merged
ChristopherPHolder merged 1 commit into
mainfrom
docs/production
Nov 28, 2026
Merged

ChristopherPHolder merged 1 commit into
mainfrom
docs/production

Conversation

@ChristopherPHolder

Copy link
Copy Markdown
Collaborator

What a team needs once a streamed page goes live was spread over Limitations, Why stream out of order, Angular CLI and the proxies guide, or wasn't written down at all. It is now one guide, "Going to production", under Guides. Closes #104.

What it covers

  • Status codes and redirects: settled with the shell.
    • With the Angular CLI: route status, or RESPONSE_INIT from the URL or a resolver.
    • On the other setups: the demo Worker's way of setting 404 from outside while keeping the streamed body.
    • Soft 404s, and noindex.
  • Crawlers and metadata: what a crawler that doesn't run scripts gets, and the fact that the fallback doesn't include the blocks either. Titles and og:* tags have to be set before the shell, since one set from late data is set in the browser only.
  • Content Security Policy:
    • The runtime, each chunk's script and the chunk <style>s are all inline, with no nonce yet.
    • 'unsafe-inline' works.
    • Nonces and 'strict-dynamic' block the stream, and hashes can't cover chunks.
    • ngCspNonce doesn't cover these scripts.
  • Caching: no-store, the hashed assets, caching the data rather than the page, and RenderMode.Prerender for routes that should be cached.
  • Web Vitals: what streaming changes in TTFB, FCP, LCP, CLS and INP, and how to measure it.
  • Request context:
    • With the Angular CLI, REQUEST is there.
    • On the other setups, createStreamingHandler() doesn't provide REQUEST. Nothing had said this, so Limitations lists it now. The way around it is renderStreamingAngular() with platformProviders.
  • Proxies and timeouts: a pointer to the existing guide.
  • A checklist. It's a plain list rather than - [ ], which marked renders as unlabelled checkboxes.

Limitations now links to the CSP and request-context sections.

Checked

Status codes and redirects, crawlers and metadata, Content Security
Policy, caching, Web Vitals, request context, and proxies, ending in a
checklist. Limitations links to it, and says the setups without
@angular/ssr don't hand the app the request.

Closes #104
@ChristopherPHolder
ChristopherPHolder merged commit 58180e6 into main Nov 28, 2026
1 check passed
@ChristopherPHolder
ChristopherPHolder deleted the docs/production branch November 28, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: a page on running streamed pages in production

1 participant