hey wait, when I'm testing locally, when I'm print...
# ask-community
y
hey wait, when I'm testing locally, when I'm printing out the EnvVar("ENV"), it's just printing ENV instead of the contents
print(EnvVar("ENV"))
am I supposed to be accessing it a different way? I just have the vars in a .env file. This seems to be happening in my branch deploy, too
t
It evaluates to the variable when you're using it within the context of a Resource. Outside of a resource, it'll just print the environment variable name. Apologies, we should be more explicit about that;.
y
oohhh