How to deploy function variables with the Appwrite CLI? #4667
-
👟 Reproduction stepswhen i deploy a function with "vars", they are not provided in the new "variables" section of cloud functions 👍 Expected behaviorvars should be respected 👎 Actual Behaviorvars are ignored 🎲 Appwrite versionVersion 1.0.x 💻 Operating systemLinux 🧱 Your EnvironmentNo response 👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@s3ppo would you please try with {
"$id": "my-function",
"name": "my-function",
"runtime": "dart-2.17",
"path": "functions/my-function",
"entrypoint": "lib/main.dart",
"ignore": [".packages", ".dart_tool"],
"execute": [],
"variables": {
"APPWRITE_FUNCTION_ENDPOINT": "https://[HOSTNAME]/v1",
"APPWRITE_FUNCTION_API_KEY": "[API KEY]"
},
"events": ["databases.*.create"],
"schedule": "",
"timeout": 15
} Please also make sure you're on the latest appwrite CLI ( |
Beta Was this translation helpful? Give feedback.
-
Ah okay you are right.. i tried to pass it with vars format like showed in console.. Anyway all other keys and formats are same like in console.. why is it here different? This is an exception where you have to waste a lot of time to find it in the docs 😉 |
Beta Was this translation helpful? Give feedback.
-
Hey, still got this problem with the new version. appwrite cli 4.2.0 and appwrite 1.4.8 |
Beta Was this translation helpful? Give feedback.
@s3ppo would you please try with
variables
instead like:Please also make sure you're on the latest appwrite CLI (
appwrite -v
should sho…