Hello. I just updated my Appwrite server (1.4.13) and appwrite-cli (4.2.0). Still, if I create a cloud-function using appwrite init function --verbose for the dart runtime it produces sample code with errors.
The "process" in the following code is unknown:
final client = Client()
.setEndpoint('https://cloud.appwrite.io/v1')
.setProject(process.env.APPWRITE_FUNCTION_PROJECT_ID)
.setKey(process.env.APPWRITE_API_KEY);
what version of dart?
oops fail...looks like that commented code is incorrect...Would you please create a github issue for that?
thanks! so, as i mentioned, the syntax isn't right for dart. Please see our docs for the right syntax: https://appwrite.io/docs/products/functions/development#environment-variables
Thank you! I don't know why I didn't get it working before since I checked the docs back and forth. Anyway, my fault.
not your fault. the template/starter code is incorrect
But your docs are correct and I saw it before but for whatever reason didn't get it work. Anyway, now everything makes sense π
Recommended threads
- HTTP Error 500 ''
Hello to everyone, I'm a Flutter developer and actually I'm developing an app using Appwrite.. during my tests and also massive ones I've noticed something we...
- CSV imports were not working but found a...
With 1.9.5 Self-Hosted on a remote Debian 13 VPS I was trying to upload some data using the Import from CSV function. After following the Docs I created a csv f...
- Inviting members while SMTP is disabled ...
Issue: https://github.com/appwrite/console/issues/3125 PR: https://github.com/appwrite/console/pull/3126