Spike/base site approach c - #21855
Draft
sp94sap wants to merge 2 commits into
Draft
Conversation
…ED POC
Proves that BEFORE_APP_SERIALIZED cannot achieve clean text/plain transport
without the deprecated inject(RESPONSE) path. The HTML shell is always emitted
by CommonEngine and Content-Type cannot be set from inside the pipeline.
Resolution via AiSeoBaseSiteService (APP_INITIALIZER + ConfigInitializerService.
getStable('context')) works — zero extra OCC call. Transport does not.
Files:
- angular-native-base-site-service.ts: AiSeoBaseSiteService + provideAiSeoBaseSiteDetection()
- llms-txt.component.ts: LlmsTxtComponent + provideLlmsTxtRoute()
- app.config.server.ts: wires approach (c) providers
- server.ts: approach (c) only — Angular catch-all, no Express llms.txt handler
…er cut /llms.txt reachable in Angular SSR — express.static fallthrough passes dotted path to Angular catch-all. HTML shell from renderToString() stripped post-render: - LlmsTxtComponent: sets Content-Type via RESPONSE, wraps body in markers. Reads active baseSite via BaseSiteService.getActive() (toSignal) — proves per-site DI resolution in-pipeline. - OptimizedSsrEngine: cuts body to marker content. Guarded by includes() check — normal renders untouched. - server.ts: no functional change. Comments document fallthrough.
Contributor
🚨 PR Title Validation Failed 🚨Your pull request title does not follow the required format. Please update it to match the expected pattern: Expected format: Allowed Types
Example of a valid PR title✅ ❌ Merge is blocked until the PR title is corrected. |
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.
No description provided.