
Here's my situation:
- Deploy the function first
- Add API key(other service) in env
- Redeploy
- The function still cannot recognize my API key.
I think it might using my first deployment even though I redeploy. How much I wait for? Or is it a bug?

if you update an environment variable, on going to your Function > Deployments screen you should see this modal

if its not there, it means that the function is using the latest values

But, it doesn't recognize my new env key

I've already checked that modal and redeployed

can you share the code? and the values?
many things can be wrong like difference in casing, typo etc.





When I create a new function freshly, then it works.

I think it rather be a CDN caching problem or so what

can you try using
// os.Environ() returns a slice of strings in the format "key=value"
envVars := os.Environ()
to see all the env values being set in the environment



@Chirag Aggarwal Even though I redeployed, actually it might be using old one

strange.. yeah
cc @Meldiron
Recommended threads
- Migration Error
Hi, so I triggered a migration from appwrite cloud to appwrite self hosted instance, I used the inbuilt migration tool and it failed to migrate things like clo...
- How can I check which version of node-ap...
Hi everyone, I deployed a Function on Appwrite with the following in my package.json: ```"dependencies": { "node-appwrite": "*" }``` Since Appwrite automat...
- I can't add relationship attributes on m...
How can I make it work in selfhosted Appwrite?
