Skip to content

docs: every runtime page goes from an empty folder to a checked stream - #109

Merged
ChristopherPHolder merged 1 commit into
mainfrom
docs/runtime-pages
Nov 28, 2026
Merged

ChristopherPHolder merged 1 commit into
mainfrom
docs/runtime-pages

Conversation

@ChristopherPHolder

Copy link
Copy Markdown
Collaborator

The runtime pages matched their example apps, but a reader arriving at one from search couldn't get from nothing to a page they knew was streaming. Every page now takes the same path. Closes #101.

The path, on every page

  1. Before you start (the ngp setups). This is a new shared step: Node 26, @angular/* pinned to 22.3.0-rc.0, Vite 8.3 and TypeScript 6.0, an ES module with vite/client types, and the index.html and src/main.ts to start from. It points at Angular CLI for anyone who doesn't need ngp.
  2. Install is step 1 everywhere, with npm. Six pages had no install step, and the others put it in six different places. Bun keeps bun add.
  3. The config, the server, and the runtime's own files, as before.
  4. Develop. Every page says what the dev server does. Installation has a table of it: streams, client-only, or a watch build.
  5. Build and run, or deploy.
  6. Check that it streams. A new shared step. It replaces four different checks, some of which grepped for data-placeholder, which only the example page renders. Hosted platforms check their local stand-in, then the deployment.
  7. Stream something, then the variants: Elysia, Edge Functions, Deno Deploy, Hono on other runtimes, and so on.

Shared steps

  • _shared/before-you-start.md, _shared/check-it-streams.md, _shared/allowed-hosts.md and _shared/event-replay.md.
    • The allowedHosts paragraph had been repeated on 14 pages.
    • The eventDispatchContract paragraph had been on 12 pages, in three versions that disagreed on what's lost.
  • Includes can take values now. <!-- include ../_shared/check-it-streams.md url=http://localhost:3000/ --> fills {{url}} (apps/docs/markdown.ts). A slot without a value, or a value without a slot, fails the build, the same way a missing include does.

Commands that only worked in this repository

  • Netlify's netlify.toml, build and deploy are written for an app at the root of its repository. Monorepos are covered in a paragraph linking the example's own netlify.toml.
  • AWS Lambda: copy the example's two scripts/ files, then run node scripts/serve.ts. It no longer says pnpm nx serve.
  • Fastly: vite build and npm run replace vp build and pnpm. The deploy order now says why the first deploy is the other way round.
  • Service Worker: "Try it" says it runs in a checkout of the repository. Its setup uses the shared steps instead of pointing at Cloudflare's.

Contradictions

  • Bun now runs with NODE_ENV=production, as the Hono page already said.
  • Deno says port 8000 is Deno's default, and how to take $PORT.
  • NestJS's useStaticAssets() and Elysia say plainly that they serve /index.html as the bare template, and Elysia that a missing /assets/ file gets a page.
  • The Node pages say a Host that can't be parsed is a 400, before the 403 check.

Also

  • Angular CLI: "What @angular/ssr still does" and "Angular 19 to 21" move after the steps, with a pointer at the top for 19 to 21.
  • Steps are renumbered, and every link to a renumbered heading is updated, including streaming-through-proxies.md → express.md#compressed.

Checked

  • vp check: 0 errors.
  • pnpm nx build docs: every page prerenders, and the link and heading checks pass.
  • In the built HTML, no slot is left unfilled, each page's check shows its own address, and no page greps for data-placeholder.

- A shared "Before you start" for the ngp setups: Node 26, the pinned
  Angular release, Vite, index.html and main.ts.
- Install is step 1 on every page, with npm.
- One check that a page streams, written once and included with the
  page's own address; includes take values for {{slots}} now.
- allowedHosts and eventDispatchContract are written once.
- No commands that only work in this repository.
- Bun runs with NODE_ENV=production, Deno's port is explained, and
  NestJS and Elysia say they serve /index.html as a file.
- Installation has a table of what the dev server does on each runtime.

Closes #101
@ChristopherPHolder
ChristopherPHolder merged commit 5d87abe into main Nov 28, 2026
1 check passed
@ChristopherPHolder
ChristopherPHolder deleted the docs/runtime-pages 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: every runtime page gets the same path from nothing to a page that streams

1 participant