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);
Summary
The user is experiencing errors with creating a cloud function using appwrite-cli in Dart. They have checked the documentation and believe there is an issue with the template code. They have also updated their Appwrite server and appwrite-cli, but the error persists. The error is occurring with the use of 'process.env' in the code. The user requests to create a GitHub issue for this problem.
Solution: The user is advised to check the Dart version they are using and follow the correct syntax provided in the Appwrite documentation for environment variables. The user is also instructed to create a GitHub issue for further assistance with the commented code problem.
Drake
Admin
Nov 27, 2023, 19:11
what version of dart?
Drake
Admin
Nov 27, 2023, 19:13
oops fail...looks like that commented code is incorrect...Would you please create a github issue for that?