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
- MariaDB refuses to connect to appwrite
Earlier, I tried updating my Appwrite version from 18.1.x to the latest release because my Flutter package required it to function properly. I used the official...
- executeFunction intermittently throws Fo...
Environment: Flutter app using the Appwrite Flutter SDK, calling executeFunction for [describe endpoint, e.g. live-stream-related function]. *Description*: Int...
- Console display all Databases as TablesD...
While looking at an issue with <@1231860789355347971> we saw that the console was displaying ALL databases as `TablesDB` even if the real type in the API is `le...