
Hello, how can I add env variables to the functions that I'm going to deploy in Appwrite.json?


Under the function

The param variables

takes a json object of key-value pairs for variables 😉

You save me a lot of time @VincentGe Thank you so much!

[SOLVED] How to add env variables to functions in Appwrite.json?

Btw, I have to deploy twice in order to my function takes the env variables.
Just in case for someone is useful info.

Re-opening this!

How to add env variables to functions in Appwrite.json?
Recommended threads
- I am facing this error: type 'Null' is ...
When attempting to fetch areas from the area collection, the application throws an error: "type 'Null' is not a subtype of type 'int.'" This issue originates in...
- Adding Domain to Sites [Self Hosted]
I am struggling to get this working. I stood-up a new server and deployed appwrite 1.7.4. I added update .env file _APP_DOMAIN=appwrite.mydomain.com _APP_DOMAI...
- Need help migrating from self hosted to ...
Hi! I am using self hosted appwrite for testing stuff out and now it's prod ready I want to deplot it to the cloud version. It gave me this error when fetchin...
