如何编写用于Dart的appwrite.json文件?具有具有执行权限和环境变量的功能。

huangapple go评论75阅读模式
英文:

How to write appwrite.json for dart ? with function that has (execution permission, env variables )

问题

以下是翻译好的部分:

我需要一个使用 Dart 作为运行时,并具有具有执行权限的函数和环境变量的 appwrite.json 的示例。

我尝试使用 appwrite CLI 创建环境变量,但它没有显示在 appwrite.json 文件中。

英文:

I need an example of appwrite.json that uses dart as run time and has function with execution permission, env variables

I tried appwrite cli to create a env variable but not showing in the appwrite.json file.

答案1

得分: 1

{
"It should look something like:": "应该看起来像这样:",
"For more info, refer to the appwrite.json docs.": "更多信息,请参考appwrite.json文档。"
}

英文:

It should look something like:

{
  "$id": "123asdf",
  "runtime": "dart-2.17",
  // ... other stuff
  "execute": ["users"],
  "variables": {
    "FIRST_VAR": "value",
    "SECOND_VAR": "value"
  }
}

For more info, refer to the appwrite.json docs.

huangapple
  • 本文由 发表于 2023年2月14日 02:54:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/75440112.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定