<iframe | |
id="my-iframe" | |
frameborder="0" | |
width="850" | |
height="450" | |
></iframe> | |
<script> | |
var envVar = process.env.ENV_VAR; // get the value of the environment variable | |
var iframe = document.getElementById("my-iframe"); | |
iframe.src = envVar; // set the src attribute of the iframe tag | |
</script> |