From 167085822406af89915b90b7987dd714a10c4cbe Mon Sep 17 00:00:00 2001 From: Timur Mashara <62305878+tmashara@users.noreply.github.com> Date: Thu, 29 Oct 2026 17:41:11 +0100 Subject: [PATCH 1/2] Reference: serve.json trailing slashes and a docs subpath for static builds Co-Authored-By: Claude Opus 5.5 --- skills/renderdiff/reference.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/skills/renderdiff/reference.md b/skills/renderdiff/reference.md index b96a73e..6c49567 100644 --- a/skills/renderdiff/reference.md +++ b/skills/renderdiff/reference.md @@ -14,7 +14,13 @@ results.json · Gotchas. - **Production builds on both sides.** Dev overlays exist on one side only; Next's and Astro's are hidden by default, others go in `hideSelectors`. - **Static builds:** `npx serve -l 3002 dist` (or any static server). Match the real host's - clean URLs and trailing slashes, or a route 404s or redirects on one side only. + clean URLs and trailing slashes, or a route 404s or redirects on one side only. `serve` + already maps `/about` to `about.html` and `/docs` to `docs/index.html`, but answers with + and without a trailing slash: `{ "trailingSlash": true }` in a `serve.json` redirects + `/docs` to `/docs/`, `false` the reverse. Pass it as `-c ../serve.json`, which is relative + to `dist` so it survives rebuilds; restart after editing it. Docs dist under the marketing + one on a single origin: `ln -s "$PWD/docs/dist" dist/docs` (`rewrites` only remap paths + inside the served dir). Other options (`redirects`, `headers`): serve-handler's README. - **Routes** are literal (no globs, no discovery): every template or page the change can reach, from the sitemap or router; skip search results, pagination and admin. For removed CSS, every page where its selectors could match. Pages you don't list go under Not verified. From 460ae28087cce63887dae40628c97e45146b73a6 Mon Sep 17 00:00:00 2001 From: Timur Mashara <62305878+tmashara@users.noreply.github.com> Date: Thu, 29 Oct 2026 17:44:10 +0100 Subject: [PATCH 2/2] Reference: note the symlink needs redoing after a rebuild; tighten wording Co-Authored-By: Claude Opus 5.5 --- skills/renderdiff/reference.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/skills/renderdiff/reference.md b/skills/renderdiff/reference.md index 6c49567..6cbc0f6 100644 --- a/skills/renderdiff/reference.md +++ b/skills/renderdiff/reference.md @@ -15,12 +15,12 @@ results.json · Gotchas. Astro's are hidden by default, others go in `hideSelectors`. - **Static builds:** `npx serve -l 3002 dist` (or any static server). Match the real host's clean URLs and trailing slashes, or a route 404s or redirects on one side only. `serve` - already maps `/about` to `about.html` and `/docs` to `docs/index.html`, but answers with - and without a trailing slash: `{ "trailingSlash": true }` in a `serve.json` redirects - `/docs` to `/docs/`, `false` the reverse. Pass it as `-c ../serve.json`, which is relative - to `dist` so it survives rebuilds; restart after editing it. Docs dist under the marketing - one on a single origin: `ln -s "$PWD/docs/dist" dist/docs` (`rewrites` only remap paths - inside the served dir). Other options (`redirects`, `headers`): serve-handler's README. + already maps `/about` to `about.html` and `/docs` to `docs/index.html`, but serves both + `/docs` and `/docs/`: `{ "trailingSlash": true }` in a `serve.json` redirects `/docs` to + `/docs/`, `false` the reverse. Pass it as `-c ../serve.json` (relative to `dist`, so the + file sits outside it and survives rebuilds); restart after editing it. Docs dist under the + marketing one: `ln -s "$PWD/docs/dist" dist/docs`, redone after each rebuild (`rewrites` + only remap paths inside the served dir). `redirects` and more: serve-handler's README. - **Routes** are literal (no globs, no discovery): every template or page the change can reach, from the sitemap or router; skip search results, pagination and admin. For removed CSS, every page where its selectors could match. Pages you don't list go under Not verified.