Skip to content

Instantly share code, notes, and snippets.

@carlohcs
Created January 31, 2021 23:52
Show Gist options
  • Save carlohcs/9781c7491de20aa2a372149f241b7f25 to your computer and use it in GitHub Desktop.
Save carlohcs/9781c7491de20aa2a372149f241b7f25 to your computer and use it in GitHub Desktop.
Get heroku env values
const keys = {};
const keyInputs = document.querySelectorAll(".config-var-key");
const keyInputsValue = document.querySelectorAll(".config-var-value");
[...keyInputs].map((item, key) => {
keys[item.value] = keyInputsValue[key].value;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment