
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
- How to delete secured files from bucket?
When deleting a user I want to delete all their data including files. How can I delete secured files in cloud/nodejs?
- How to get OTP code in SMTP email temp...
I don't know how to get the OTP code to show in my custom email template for email authentication using OTP. I have email authentication set up for iOS app, an...
- Expo-web session issue
In web I created a session using oauth. I run the app logged in but closed the terminal and ran again opened the app(I have now 2 running app in different...
