RunpodR
Runpod16mo ago
2 replies
Untrack4d

How to use environment variables

I have added environment variables in my runpod serverless endpoind, the thing is i cant reach then inside the pod, i have defined it like this in the UI:

key. | value
SOME_KEY | keyvaluehere

and in the code i am trying to use them like this:

ENVIRONMENT_KEY_CONSTANT = os.getenv("SOME_KEY", "")

WHAT AM I DOING WRONG HERE
Was this page helpful?