From ab7efb65e6f540aae9ffc2770eb1af50d71ef19d Mon Sep 17 00:00:00 2001 From: k8w Date: Thu, 23 Dec 2021 23:37:59 +0800 Subject: [PATCH] readme --- examples/serverless-faas/README.md | 4 ++-- examples/serverless-faas/frontend/src/client.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/serverless-faas/README.md b/examples/serverless-faas/README.md index 8997250..9b8a80e 100644 --- a/examples/serverless-faas/README.md +++ b/examples/serverless-faas/README.md @@ -21,7 +21,7 @@ Serverless 云函数支持示例 ``` 1. 配置 **函数入口** 为 `aliyun-fc.handler` 1. 配置 **初始化函数** 为 `aliyun-fc.initializer` -1. 测试运行 +1. 修改前端项目下 `client.ts` 中的后端地址,测试运行 ### 腾讯云 @@ -32,4 +32,4 @@ Serverless 云函数支持示例 npm i ``` 1. 配置 **执行函数** 为 `txcloud-scf.handler` -1. 测试运行 \ No newline at end of file +1. 修改前端项目下 `client.ts` 中的后端地址,测试运行 \ No newline at end of file diff --git a/examples/serverless-faas/frontend/src/client.ts b/examples/serverless-faas/frontend/src/client.ts index e387f38..58d4595 100644 --- a/examples/serverless-faas/frontend/src/client.ts +++ b/examples/serverless-faas/frontend/src/client.ts @@ -3,7 +3,7 @@ import { serviceProto } from "./shared/protocols/serviceProto"; // Create Client 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) json: true, logger: console,