GEOLYTIX / xyz

An open source javascript framework for spatial data and application interfaces.
MIT License
87 stars 25 forks source link

Add SRC env subtitution to the getLayer Module #1242

Closed simon-leech closed 2 months ago

simon-leech commented 2 months ago

The replacement of keys ${HOST} for example was previously only happening in the getLocale module. This PR adds it to the getLayer module too - which means that file paths within for example layer.meta can substitute ENV variables.

The below would now resolve to whatever SRC_HOST is defined to in the ENV settings

  "meta": "<a target='_blank' href='${HOST}/...`>Click here for User Guide</a></div>",

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud