platform-coop-toolkit / coop-map-directory-index

The Map/Directory/Index component of the Platform Cooperative Development Kit.
https://directory.platform.coop
BSD 3-Clause "New" or "Revised" License
1 stars 3 forks source link

Deployment is not handling environment variables for map style paths #153

Closed greatislander closed 4 years ago

greatislander commented 4 years ago

Describe the bug

Recent deployments of map style changes to the dev instance are showing that the MAP_ASSETS_BASE_URL environment variable is showing up as undefined, which is breaking map styles.

To Reproduce

Steps to reproduce the behavior:

  1. Visit https://dev.directory.platform.coop.
  2. Notice that map is blank.
  3. Load https://dev.directory.platform.coop/static/maps/dist/styles/pcc/style.json.
  4. Notice that glyphs is set to undefined/static/maps/dist/styles/glyphs/{fontstack}/{range}.pbf.

Expected behavior

Map should display, glyphs should be set to https://dev.directory.platform.coop/static/maps/dist/styles/glyphs/{fontstack}/{range}.pbf.