Set environment variable for build in Netlify : <p>I'm trying to set an environment variable for an API key that I don't want in my code. My source javascript looks something like this :</p>

<pre><code>.get(`http://api-url-and-parameters&amp;api-key=${process.env.API_KEY}`)
</code></pre>

<p>I'm using webpack and the package dotenv-webpack <a href="https://www.npmjs.com/package/dotenv-webpack" rel="noreferrer">https://www.npmjs.com/package/dotenv-webpack</a> to set API_KEY in a gitignored .env file and it's all running fine on my local. I'd like to also be able to set that variable when deploying through Netlify, I've tried adding it through to GUI to the 'build environment variables', and also to set it directly in the build command, but without success.</p>

<p>Any idea what might be the issue ?</p>
