Repository navigation
docs: a guide to running streamed pages in production - #114
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, orRESPONSE_INITfrom the URL or a resolver.404from outside while keeping the streamed body.noindex.og:*tags have to be set before the shell, since one set from late data is set in the browser only.<style>s are all inline, with no nonce yet.'unsafe-inline'works.'strict-dynamic'block the stream, and hashes can't cover chunks.ngCspNoncedoesn't cover these scripts.no-store, the hashed assets, caching the data rather than the page, andRenderMode.Prerenderfor routes that should be cached.REQUESTis there.createStreamingHandler()doesn't provideREQUEST. Nothing had said this, so Limitations lists it now. The way around it isrenderStreamingAngular()withplatformProviders.- [ ], which marked renders as unlabelled checkboxes.Limitations now links to the CSP and request-context sections.
Checked
vp check: 0 errors.pnpm nx build docs: every page prerenders, and the link and heading checks pass, includingmaking-something-stream.md#when-a-request-failsfrom docs: Making something stream says each thing once, and covers failures and data from outside HttpClient #111.REQUESTclaim comes frompackages/core/src/server/handler.ts, which callsrenderStreamingAngular()withoutplatformProviders.