LAPTOP-6WAY: the one command that makes the copy-paste snippets pasteable too (EMBED_BASE_URL + bun run tree); proven 21 of 21

This commit is contained in:
doxa-maps 2026-09-29 00:31:39 +00:00
parent a3ee6ae224
commit ee1ad40926

View file

@ -106,8 +106,18 @@ Open http://localhost:4613/, use the Research menu item, and open http://localho
- The label reads `<name>=<site origin>@<manifest URL>`.
- 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.<host>`.
- 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.