This commit is contained in:
k8w 2021-12-23 23:37:59 +08:00
parent 82663162b7
commit ab7efb65e6
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ Serverless 云函数支持示例
``` ```
1. 配置 **函数入口**`aliyun-fc.handler` 1. 配置 **函数入口**`aliyun-fc.handler`
1. 配置 **初始化函数**`aliyun-fc.initializer` 1. 配置 **初始化函数**`aliyun-fc.initializer`
1. 测试运行 1. 修改前端项目下 `client.ts` 中的后端地址,测试运行
### 腾讯云 ### 腾讯云
@ -32,4 +32,4 @@ Serverless 云函数支持示例
npm i npm i
``` ```
1. 配置 **执行函数**`txcloud-scf.handler` 1. 配置 **执行函数**`txcloud-scf.handler`
1. 测试运行 1. 修改前端项目下 `client.ts` 中的后端地址,测试运行

View File

@ -3,7 +3,7 @@ import { serviceProto } from "./shared/protocols/serviceProto";
// Create Client // Create Client
export const client = new HttpClient(serviceProto, { export const client = new HttpClient(serviceProto, {
server: "https://service-23pfz6cm-1253954497.gz.apigw.tencentcs.com/release/helloworld-1634897828/", server: "http://127.0.0.1:3000",
// Remove this to use binary mode (remove from the server too) // Remove this to use binary mode (remove from the server too)
json: true, json: true,
logger: console, logger: console,