title: How to create/use environment variables for API Secret Keys in Shopify/Liquid?
body: <p>I am trying to use the ipapi API (<a href="https://ipapi.com/documentation" rel="nofollow noreferrer">https://ipapi.com/documentation</a>) to get the geolocation data of users and I have an API key which I will need to use to make the API call to get the JSON results.</p>
  <p>In nodejs, we can use <code>.env</code> to store secret keys and access them with <code>process.env.KEY_NAME</code>. The same goes for servers such as Heroku and AWS, where we can store an API keys as config vars.</p>
  <p>But for shopify, I can't seem to find out where to store secret API keys.</p>
  <p>I have read some examples:</p>
  <p><a href="https://stackoverflow.com/questions/35094919/how-to-define-global-variables-in-liquid">How to define global variables in Liquid?</a> (this doesn't seem like the right thing to do as I want to store it as a secret and access it from another file).</p>
  <p><a href="https://devcenter.heroku.com/articles/config-vars" rel="nofollow noreferrer">https://devcenter.heroku.com/articles/config-vars</a> (only for themekit/slate development).</p>
  <p>Is it safe to just create another <code>.liquid</code> file and place all my secret keys there and just call it from another file?</p>
  <p>Would appreciate if someone could point me the right direction.</p>
  <p>Thank you!</p>