
In my function i want to access the _APP_ENV environment variable, but i think this changed in the new update. For my workflow it doesn't really work having to manually create this variable in the appwrite console, since im switching between production(on server) to development(local pc) appwrite environments.

For now i'm gonna update the variables manually using the CLI when importing production. But would be nice not having to do that.


y'no there are project level variables now. maybe you can set the variables in your project instead of function?

or you can set the variable in the console and then don't overwrite the variables on deploy

Yeaa, i just thought you could access the appwrite variables in the local .env directly in the functions. But ill make use of the CLI, and think itll be fine.

[CLOSED] How to access .env variables in functions 1.4.2?

[SOLVED] How to access .env variables in functions 1.4.2?
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)```...
