Skip to content

Commit 0142d69

Browse files
committed
fix: upgrade deps
1 parent eae66b2 commit 0142d69

File tree

4 files changed

+15
-18
lines changed

4 files changed

+15
-18
lines changed

docs/configure.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ inputs:
3030
layers:
3131
- name: layerName # layer名称
3232
version: 1 # 版本
33-
traffic: 0.9 # 配置默认流量中 $LATEST 版本比重:0 - 1
3433
functionConf: # 函数配置相关
3534
timeout: 10 # 超时时间,单位秒
3635
memorySize: 128 # 内存大小,单位MB
@@ -73,20 +72,19 @@ inputs:
7372
7473
主要的参数
7574
76-
| 参数名称 | 是否必选 | 默认值 | 描述 |
77-
| ------------------------------------ | :------: | :-------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
78-
| runtime | 否 | Nodejs10.15 | 执行环境, 目前支持: Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16 |
79-
| region | 否 | ap-guangzhou | 项目部署所在区域,默认广州区 |
80-
| functionName | 否 | | 云函数名称 |
81-
| serviceName | 否 | | API 网关服务名称, 默认创建一个新的服务名称 |
82-
| serviceId | 否 | | API 网关服务 ID,如果存在将使用这个 API 网关服务 |
83-
| src | 否 | `process.cwd()` | 默认为当前目录, 如果是对象, 配置参数参考 [执行目录](#执行目录) |
84-
| layers | 否 | | 云函数绑定的 layer, 配置参数参考 [层配置](#层配置) |
85-
| traffic | 否 | 1 | 配置默认流量中 `$LATEST` 版本比重,取值范围:0 ~ 1,比如 80%,可配置成 0.8。注意如果配置灰度流量,需要配置对应的 API 网关触发器的 endpoints 的 `function.functionQualifier` 参数为 `$DEFAULT` (默认流量) |
86-
| [functionConf](#函数配置) | 否 | | 函数配置 |
87-
| [apigatewayConf](#API-网关配置) | 否 | | API 网关配置 |
88-
| [cloudDNSConf](#DNS-配置) | 否 | | DNS 配置 |
89-
| [Region special config](#指定区配置) | 否 | | 指定区配置 |
75+
| 参数名称 | 是否必选 | 默认值 | 描述 |
76+
| ------------------------------------ | :------: | :-------------: | :------------------------------------------------------------------ |
77+
| runtime | 否 | Nodejs10.15 | 执行环境, 目前支持: Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16 |
78+
| region | 否 | ap-guangzhou | 项目部署所在区域,默认广州区 |
79+
| functionName | 否 | | 云函数名称 |
80+
| serviceName | 否 | | API 网关服务名称, 默认创建一个新的服务名称 |
81+
| serviceId | 否 | | API 网关服务 ID,如果存在将使用这个 API 网关服务 |
82+
| src | 否 | `process.cwd()` | 默认为当前目录, 如果是对象, 配置参数参考 [执行目录](#执行目录) |
83+
| layers | 否 | | 云函数绑定的 layer, 配置参数参考 [层配置](#层配置) |
84+
| [functionConf](#函数配置) | 否 | | 函数配置 |
85+
| [apigatewayConf](#API-网关配置) | 否 | | API 网关配置 |
86+
| [cloudDNSConf](#DNS-配置) | 否 | | DNS 配置 |
87+
| [Region special config](#指定区配置) | 否 | | 指定区配置 |
9088

9189
## 执行目录
9290

example/serverless.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ inputs:
1111
- .env
1212
region: ap-guangzhou
1313
runtime: Nodejs10.15
14-
traffic: 0.8
1514
apigatewayConf:
1615
protocols:
1716
- http

serverless.component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: koa
22
version: 0.0.6
33
author: Tencent Cloud, Inc.
44
org: Tencent Cloud, Inc.
5-
description: Deploy a serverless Koa.js application onto Tencent SCF and APIGateway.
5+
description: Deploy a serverless Koa.js application onto Tencent SCF and API Gateway.
66
keywords: tencent, serverless, koa
77
repo: https://github.com/serverless-components/tencent-koa/
88
readme: https://github.com/serverless-components/tencent-koa/tree/master/README.md

src/package.json

Lines changed: 1 addition & 1 deletion
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.12.13",
4+
"tencent-component-toolkit": "^1.12.15",
55
"type": "^2.0.0"
66
}
77
}

0 commit comments

Comments
 (0)