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
- Function Building show 500 Error
Region: sfo Temple: Starter Function Runtime: Nodejs 22 What happened? Before 2 minutes it show ‘server error.","code":500,"version":"0.7.24"}’ after it show c...
- Function for long running task (other 60...
My function need long running other 60 seconds. But async mode return empty body. How to deal with that please ?
- total parameter not working correctly in...
Hello Appwrite team, I'm experiencing issues with the total parameter in the listRows() method (TablesDB) across multiple SDKs. **Issue 1**: Node.js SDK (node...