LAPTOP-6WAY: the Subdomain way opens the gallery at research.localhost, like research.<host>
The gallery now gets its own origin on the laptop, as it does on the team's server, while the maps stay on localhost:4610. Chrome and Firefox send any *.localhost name to this computer; Safari and command-line tools may need `127.0.0.1 research.localhost` in /etc/hosts. Checked: the tree server answers research.localhost:4610 (gallery 200, with ?tab= and &lang=ar; manifest 200; the bare root 404, so the address keeps its /index.html).
This commit is contained in:
parent
ee1ad40926
commit
d691b5401a
1 changed files with 6 additions and 3 deletions
|
|
@ -81,7 +81,7 @@ team's public CDN. Open http://localhost:4612/research/ and http://localhost:461
|
|||
```bash
|
||||
cd doxa-life && git switch research-gallery-subdomain
|
||||
NUXT_PUBLIC_DX_MAPS_BASE=http://localhost:4610/dx-maps \
|
||||
NUXT_PUBLIC_RESEARCH_GALLERY_URL=http://localhost:4610/dx-maps/doxa-maps-spa/doxa-maps-spa/index.html \
|
||||
NUXT_PUBLIC_RESEARCH_GALLERY_URL=http://research.localhost:4610/dx-maps/doxa-maps-spa/doxa-maps-spa/index.html \
|
||||
PORT=4613 bun run dev
|
||||
```
|
||||
|
||||
|
|
@ -90,6 +90,9 @@ PORT=4613 bun run dev
|
|||
- `NUXT_PUBLIC_RESEARCH_GALLERY_URL` is "the subdomain": the Research menu item, and every research link,
|
||||
opens the gallery there, adding `?tab=` and `?lang=`. The dx-maps server does not list directories, so the
|
||||
address ends in `/index.html`.
|
||||
- `research.localhost` is your laptop's `research.<host>`: the gallery gets its own origin, as on the team's
|
||||
server, while the maps stay on `localhost:4610`. Chrome and Firefox send every `*.localhost` name to this
|
||||
computer. Safari and command-line tools may not: for them, add `127.0.0.1 research.localhost` to `/etc/hosts`.
|
||||
- `NUXT_PUBLIC_DX_MAPS_BASE` is for the maps DX-life still embeds on its own pages (home, pray, adopt,
|
||||
`/embed-test`). Leave it out, and those load from the team's public CDN instead of your laptop.
|
||||
|
||||
|
|
@ -100,12 +103,12 @@ Open http://localhost:4613/, use the Research menu item, and open http://localho
|
|||
- **`/embed-test`:** the production cards mount and draw their maps, with 0 page errors and 0 iframes
|
||||
(`/ar/embed-test` runs the same test right to left).
|
||||
- **`/research/?tab=regions-dashboard`** opens the gallery on its Regions tab, and `/regions` redirects there.
|
||||
On the subdomain branch, both open the gallery on port 4610.
|
||||
On the subdomain branch, both open the gallery at `research.localhost:4610`.
|
||||
- **Headless**, dx-base's `check-embed-6way.mjs` (in the fleet's QA folder) checks, for every production
|
||||
plugin: the script, its integrity hash, its element, its page, CORS, and the copy-paste snippet.
|
||||
- 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>`.
|
||||
- For the Subdomain way, both are on `research.localhost:4610`, as for the team's `research.<host>`.
|
||||
- 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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue