doxa-maps-cdn/server/api/maps
swift-river542 c9ca2da642 Make map share links host-agnostic, add CORS to the token endpoint, align Mapbox GL to v3.24.0
- The Share button now derives embed URLs from where the bundle is actually hosted
  (profile-config.shareUrl -> embedBaseUrl -> window.MAP_EMBED_BASE_URL -> the bundle's own
  script URL), so generated links work on localhost, on doxa.life and on any CDN
- Generated map pages try token endpoints in order (override -> https://doxa.life/api/maps/token
  -> same-origin /api/maps/token) instead of failing on a single URL
- GET /api/maps/token sends Access-Control-Allow-Origin: * so map pages hosted on another
  origin can fetch a token
- useDoxaMap loads mapbox-gl v3.24.0 to match the bundles
- Refresh the doxa-maps drop-in: upg-100 combined map+lists page, share toolbar on every map,
  shared legend radius token
2026-09-16 11:45:59 -05:00
..
token.get.ts Make map share links host-agnostic, add CORS to the token endpoint, align Mapbox GL to v3.24.0 2026-09-16 11:45:59 -05:00
token.json.get.ts Fix leaf-map Mapbox token endpoint (.json alias) + add README maps/token docs 2026-09-16 07:35:59 +00:00