Skip to content

Commit 27f4374

Browse files
committed
fix: support cfs config
1 parent 40b99c1 commit 27f4374

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

serverless.component.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: flask
2-
version: 0.0.5
2+
version: 0.0.6
33
author: Tencent Cloud, Inc
44
org: Tencent Cloud, Inc
55
description: Deploy a serverless Flask application onto Tencent SCF and API Gateway.

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"dependencies": {
33
"download": "^8.0.0",
4-
"tencent-component-toolkit": "^1.13.2",
4+
"tencent-component-toolkit": "^1.15.7",
55
"type": "^2.0.0"
66
}
77
}

src/utils.js

+3
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ const prepareInputs = async (instance, credentials, inputs = {}) => {
249249
layers: ensureIterable(tempFunctionConf.layers ? tempFunctionConf.layers : inputs.layers, {
250250
default: []
251251
}),
252+
cfs: ensureIterable(tempFunctionConf.cfs ? tempFunctionConf.cfs : inputs.cfs, {
253+
default: []
254+
}),
252255
publish: inputs.publish,
253256
traffic: inputs.traffic,
254257
lastVersion: instance.state.lastVersion,

tests/integration.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jest.setTimeout(300000)
77
const instanceYaml = {
88
org: 'orgDemo',
99
app: 'appDemo',
10-
component: 'flask@dev',
10+
component: 'flask',
1111
name: `flask-integration-tests-${generateId()}`,
1212
stage: 'dev',
1313
inputs: {

0 commit comments

Comments
 (0)