Skip to content

Commit 231e97d

Browse files
Rong5180rongxwang
andauthored
fix: 更新deploy逻辑 (#89)
Co-authored-by: rongxwang <rongxwang@tencent.com>
1 parent 5f2c9fb commit 231e97d

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

docs/configure.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ inputs:
225225
| image | 否 | [Image](#Image) | | 镜像配置 |
226226
| protocolType | 否 | string | | HTTP 函数支持的访问协议。当前支持 WebSockets 协议,值为 WS,只有 type:web 时此配置生效 |
227227
| protocolParams | 否 | [ProtocolParams](#ProtocolParams) | | HTTP 函数配置 ProtocolType 访问协议,当前协议可配置的参数,主要是配置空闲超时时间 |
228+
| provisionedNum | 否 | number | | 预置并发数量,注:所有版本的预置并发数总和存在上限限制,当前的上限是:函数最大并发配额 - 100 |
229+
| qualifier | 否 | number | | 函数的版本号,注:\$LATEST 版本不支持预置并发 |
228230

229231
**重要字段说明**
230232

serverless.component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: scf
2-
version: 0.9.1
2+
version: 0.9.3
33
author: Tencent Cloud, Inc.
44
org: Tencent Cloud, Inc.
55
description: 单函数组件,允许用户开发部署单个腾讯 SCF 函数实例。适合进行单一函数开发的场景。如:定时触发任务。

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"dependencies": {
33
"adm-zip": "^0.5.5",
44
"download": "^8.0.0",
5-
"tencent-component-toolkit": "^2.22.2",
5+
"tencent-component-toolkit": "^2.23.1",
66
"type": "^2.0.0"
77
}
88
}

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ const formatInputs = async (instance, credentials, appId, inputs) => {
275275
getDefaultServiceName(instance)
276276

277277
let { serviceId } = currentEvent.parameters
278-
// currentEvent.parameters.isInputServiceId = !!serviceId
278+
currentEvent.parameters.isInputServiceId = !!serviceId
279279
// currentEvent.parameters.serviceName = serviceName
280280
currentEvent.parameters.description =
281281
currentEvent.parameters.description || getDefaultServiceDescription(instance)

0 commit comments

Comments
 (0)