doxa-maps-cdn/app/utils
doxa-maps 5dea900183 Plugin Studio branch: the gallery and maps addresses are read per request, never baked
This branch sends readers to the Research Gallery (the public Plugin Studio
on its own subdomain) and loads the site's maps from that subdomain's /cdn.
Both addresses belong to the deployment:
  NUXT_PUBLIC_RESEARCH_GALLERY_URL  https://research.<host>/
  NUXT_PUBLIC_DX_MAPS_BASE          https://research.<host>/cdn/dx-maps

About 4,000 pages are prerendered, and a prerendered page carries the
build's runtime config, so an address read there is baked into the build.
One build could then serve only one deployment; the CDN branch failed that
way. So neither address is in nuxt.config any more:
- the server reads both from its environment per request
  (server/utils/dx-runtime.ts);
- GET /api/dx-runtime answers them, no-store. Every map (DoxaMapSlot via
  useDoxaMap, /research, /embed-test, and the static pages under public/)
  asks it first, then loads its bundle from that tree. The map's element is
  added only once the tree is known, and the map bundle's preload is added
  then, still while Mapbox downloads;
- every gallery link, the Research menu item, and the /regions and
  /countries index rules go to this site's /research-gallery?tab=&lang=,
  which 302s (no-store) to the gallery. It works without JavaScript, and a
  prerendered page names no host;
- old /js/doxa-maps and /embed/doxa-maps-build links are redirected per
  request by server/middleware/legacy-map-links.ts. They were build-time
  route rules.

No fallback host: the maps-dev and research defaults are gone. When a
setting is unset, /research-gallery answers 503 and each map says which
setting to set. Changing an address needs a restart, not a rebuild.
2026-09-29 05:09:37 +00:00
..
terms feat: sync arabic translation 2026-09-25 11:34:14 +01:00
countries.ts phase 3 2026-04-21 13:58:07 +01:00
dxRuntime.ts Plugin Studio branch: the gallery and maps addresses are read per request, never baked 2026-09-29 05:09:37 +00:00
generalResources.ts feat: add prayer bundle download to general resources 2026-09-23 14:21:28 +01:00
mapProvider.ts Maps default to MapLibre (keyless); Mapbox by NUXT_PUBLIC_MAP_PROVIDER=mapbox with a token 2026-09-28 17:11:58 +00:00
nav.ts Subdomain: the menu's Research item links to the Research Gallery subdomain (from config); Research and Regions pages leave the menu 2026-09-28 05:11:10 +00:00
permissions.ts Add settings table and setting to disable registration 2026-04-28 15:17:26 +01:00
role-definitions.ts Implement content editor role and fix role names 2026-05-01 15:35:56 +01:00
tiptapDiv.ts remove the one-shot WordPress migration scripts 2026-09-18 10:09:38 +01:00
tiptapExtensions.ts support vimeo video embeds alongside youtube in cms editor 2026-05-21 14:31:27 +01:00
tiptapGeneralResources.ts remove the one-shot WordPress migration scripts 2026-09-18 10:09:38 +01:00
tiptapImage.ts fix ts issues 2026-04-24 14:33:04 +01:00
tiptapUupgsList.ts remove the one-shot WordPress migration scripts 2026-09-18 10:09:38 +01:00
tiptapVerse.ts fix ts issues 2026-04-24 14:33:04 +01:00
tiptapVimeo.ts support unlisted vimeo and fix video display. 2026-05-22 10:15:30 +01:00
translationUrl.ts phase 2 2026-04-21 13:27:38 +01:00
uupgListTranslations.ts relabel the exact filter toggle to "Exact Search" in all languages 2026-08-31 14:57:23 +01:00
videoUrls.ts refactor: video languages to single source of truth 2026-09-23 12:08:03 +01:00