From ee1ad40926ff6bf8f37fc79075c930aa66df3d27 Mon Sep 17 00:00:00 2001 From: doxa-maps Date: Tue, 29 Sep 2026 00:31:39 +0000 Subject: [PATCH] LAPTOP-6WAY: the one command that makes the copy-paste snippets pasteable too (EMBED_BASE_URL + bun run tree); proven 21 of 21 --- documentation/LAPTOP-6WAY.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/documentation/LAPTOP-6WAY.md b/documentation/LAPTOP-6WAY.md index 351b9e60..d217dc84 100644 --- a/documentation/LAPTOP-6WAY.md +++ b/documentation/LAPTOP-6WAY.md @@ -106,8 +106,18 @@ Open http://localhost:4613/, use the Research menu item, and open http://localho - The label reads `=@`. - For the CDN way, the site is `http://localhost:4612` and the manifest is on 4610. - For the Subdomain way, both are on 4610, as for the team's `research.`. - - The **snippet** check fails until dx-maps is built with an absolute `EMBED_BASE_URL`: the folder's - snippets are relative, so a pasted snippet points at the pasting page. That is the same on the servers. + - The **snippet** check fails on the folder as committed: its copy-paste snippets are relative, so a pasted + snippet points at the page it was pasted on. That is the same on the servers. + +**To make the snippets pasteable too**, regenerate the folder's manifests with the address it is served from. +It takes seconds and rebuilds nothing; only the two manifest files change. + +```bash +cd doxa-maps +EMBED_BASE_URL=http://localhost:4610 bun run tree # CDN and Subdomain: the tree server +EMBED_BASE_URL=http://localhost:4611 bun run tree # Drop-in: this site; then copy the folder again, as in 1 +git restore public # afterwards, back to the committed folder +``` ## Stopping @@ -124,4 +134,6 @@ Results: - `/regions` redirected to the gallery's Regions tab. - The headless check passed script, integrity hash, element, page and CORS for all 7 production plugins in each way. Only the snippet failed, for the reason above; the team's servers give the same result. +- With the manifests regenerated as shown above (4611 for drop-in, 4610 for CDN and Subdomain), **all 21 + checks passed 6 of 6**, the snippet included. - A DX-life dev server held about 1.2–1.5 GB.