
Unable to access env variables using docs instructions In a appwrite cloud function

Hey there π Its a small bug in our docs. in Node, it should be process.env.YOUR_VARIABLE_NAME

where are you seeing this syntax?

Here


can you try clearing your cache?

alright will do so

do you still see {}?

Hey @Steven yes

I still see {}

after clearing all time cached browser data including browsing history and all

Thanks a lot this worked for me

Hmm perhaps there's still application data in the service worker π§

I see it sometimes (including in Incognito), but usually a hard reload makes it go away
Recommended threads
- Create owner team member with Server fun...
I understand that when creating a team with a function, the user that made the request will not be the owner so I think I have to add the user that did the requ...
- Schedule a function job with timezone
I am aware that cron schedule will work on UTC timezone. I would like to run my function at a particular time everyday in new york time. If I use UTC, it will m...
- Appwrite processing global envs and chan...
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)```...
