Skip to content

Commit e51fff1

Browse files
Fix function deployments
1 parent d0929ac commit e51fff1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

templates/cli/base/params.twig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
file: 'code.tar.gz'
3535
}, files);
3636

37+
let archivePath = fs.realpathSync('code.tar.gz')
38+
if (typeof archivePath !== 'undefined') {
39+
payload['{{ parameter.name }}'] = archivePath;
40+
{{ parameter.name | caseCamel | escapeKeyword }} = archivePath;
41+
}
42+
3743
{% endif %}
3844
const filePath = fs.realpathSync({{ parameter.name | caseCamel | escapeKeyword }});
3945
const nodeStream = fs.createReadStream(filePath);

0 commit comments

Comments
 (0)