So I define a global env - GCP_CREDENTIALS in global env of my appwrite projcet and refer to it in my functions as
gcp_creds: JSON.PARSE(GCP_CREDENTIALS)
to use it.
This is what I define it as -
{ "type": "service_account", "project_id": "abc-csas-xxx123", "private_key_id": "12345", ...}
Everything works fine I can access these in my functions until, I open the editor or make any changes in any global env, after updating anything in this env, my GCP_CREDS are automatically processed as
{ type: service_account,project_id: ace-coda-xxx123, private_key_id: 12345, ...}
And now my functions cant read it.
How do I fix this. Either by stopping whatever processing appwrite is doing to these or by altering the access method in my functions.
Recommended threads
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...