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
- Unable to connect the git repo with appw...
I am trying to connect my existing repo with the appwrite functions. I have 2 functions in the same repo, and i was able to execute those through cli and its vi...
- Creating a function on appwrite Cloud.
I am trying to create a function on Appwrite cloud. I go to the console. I hit : Create function I choose DART-3.5 I put a name for my function : NameFunction...
- Function connected custom domain error: ...
My domain is served through Cloudflare. Domain is now connected with the appwrite function. But when accessing the domain, I get the below error. Any suggestion...