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
- Worker functions stuck on "Fetched 0 fun...
Appwrite Version: 1.9.0 Bug Description: The appwrite-worker-functions container gets stuck in an infinite loop logging "Fetched 0 functions..." while scheduled...
- I am using s3 for app storage but is it ...
_APP_STORAGE_DEVICE=s3 puts everything to the s3 storage but i need to be able to keep the function builds and site in the local and not waste the cloud storage...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...