diff --git a/templates/cli/lib/commands/deploy.js.twig b/templates/cli/lib/commands/deploy.js.twig index f843ea35d..68e627799 100644 --- a/templates/cli/lib/commands/deploy.js.twig +++ b/templates/cli/lib/commands/deploy.js.twig @@ -167,7 +167,7 @@ const deployFunction = async () => { functionId: func['$id'], name: func.name, execute: func.execute, - vars: func.vars, + vars: response.vars, events: func.events, schedule: func.schedule, timeout: func.timeout, diff --git a/templates/cli/lib/commands/init.js.twig b/templates/cli/lib/commands/init.js.twig index d4b84cf7a..c006f4a9e 100644 --- a/templates/cli/lib/commands/init.js.twig +++ b/templates/cli/lib/commands/init.js.twig @@ -100,7 +100,6 @@ const initFunction = async () => { path: `functions/${answers.name}`, entrypoint: answers.runtime.entrypoint || '', execute: response.execute, - vars: response.vars, events: response.events, schedule: response.schedule, timeout: response.timeout,