I want to checkin graphcool.yml, but I don't want ...
# prisma-whats-new
l
I want to checkin graphcool.yml, but I don't want to have to hardcode environment variables in there
l
So I can access the current environment variables on my local machine, but I can't access them from a file?
a
From a file?
l
Instead of
url: ${env:PAYMENT_URL}
I would like to do
url: ./.secret-folder/PAYMEN_URL.env
or something similar
a
Why?
l
So that I can keep all of my keys and secrets in one place on my filesystem, and not have to pollute my local machine with environment variables
I want the cloud functions to have environment variables, not my local machine
a
Maybe a tool like
direnv
fits your needs
👍 1
I thought it was also possible to pass variables to your function, so they would become part of the context, but I don't know if that's implemented already, because I can't find a reference to it in the docs. @nilan?
l
It is, I just did it
Well, I did it with a static variable. The graphcool/examples repo has that functionality described