
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
- Urgent: Functions randomly failing with ...
Hi all, I’m facing a critical issue with my Appwrite self-hosted instance where some of my functions have randomly started failing with the following error: `I...
- Is there migration script generation lik...
Having standards migration script is helpful. For example something like same script to apply for multiple DB - each DB for one tenant
- Querying and filtering on relationship a...
Hello! A few short months ago, we decided to migrate from SupaBase over to Appwrite, because we were experiencing a lot of headache with the former when it fina...
