Our pages dashboard contains environment variables for our demo and production instances. Currently, the build system requires us to overwrite those variables depending on the target build environment.
This change adds logic to choose between demo and prod based on keys added in the cloud pages build. Specifically,
move the search.gov items currently in _config.yml to the additional build settings section for each environment
this requires using a different "affiliate" entry for each environment
use the appropriate environment variable for the google analytics gtag
Note that this could probably be done more cleanly, effectively, efficiently but it seems to work for now...
Our pages dashboard contains environment variables for our demo and production instances. Currently, the build system requires us to overwrite those variables depending on the target build environment.
This change adds logic to choose between demo and prod based on keys added in the cloud pages build. Specifically,
Note that this could probably be done more cleanly, effectively, efficiently but it seems to work for now...