
How can I store Json file in environment variable of functions? Because I need to store Firebase service key. And also, how to fetch that Json in python code?
TL;DR
Developers want to set up Firebase Admin in Appwrite functions by storing the service account key JSON file in an environment variable. This can be achieved by uploading the JSON file to the cloud functions and referencing its location in the environment variable. To fetch the JSON in Python code, developers can use the `os` module to read the environment variable and authenticate Firebase Admin with the service account key. 
I need to do this:
TypeScript
cred = credentials.Certificate('path/to/serviceAccountKey.json')
Recommended threads
- Inconsistent Function Execution Times
Hi Appwrite Team, I'm experiencing inconsistent execution times with my functions, and I'd appreciate your insights. I've added detailed logs to my function t...
- The first call to the functions takes be...
I have a very big problem with appwrite functions. I am using appwrite 1.6.0 and all the functions that I have have the same problem, in the first call they tak...
- Error Msg: Http invalid protocol\nError ...
Hi, I am trying to upload large files to Appwrite in chunks. The code: Receives a file (Base64 encoded) and its name via a JSON payload. Decodes the Base64 data...
