Skip to content

Can't deploy function where remote has variables #112

@Ruboka

Description

@Ruboka

Github Doc with the wrong line

For Functions the option for the environment variables in this documentation has an error in its text.
It should be "vars" and not "variables".

 "functions": [
    {
      "$id": "655dfe83ea1cd538c65c",
      "name": "createDocument",
      "runtime": "node-20.0",
      "execute": ["any"],
      "events": [],
      "schedule": "",
      "timeout": 15,
      "enabled": true,
      "logging": true,
      "entrypoint": "src/main.js",
      "commands": "npm install",
      "ignore": ["node_modules", ".npm"],
      "path": "functions/createDocument",
      "vars": { "apikey": "test" } // not variables
    }
  ]

If tried to deploy with variables the cli throws an error
✗ Error remoteVariables is not defined

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions