Skip to content

Commit 83b91fb

Browse files
committed
docs: test application configurations
1 parent 1e477c6 commit 83b91fb

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ Configure the following environment variables:
4545
- `MASTER_KEY`
4646
- `USE_REGION`
4747

48+
Make sure the following options are configured on the LeanCloud console:
49+
50+
- Data Storage > Settings > Include ACL with objects being queried: **checked**
51+
- Push Notification > Push notification settings > Prevent clients from sending push notifications: **unchecked**
52+
- Settings > Security > Service switches > Push notifications: **enabled**
53+
- Settings > Security > Service switches > SMS: **disabled**
54+
55+
And there is a cloud function naming `add` which returns `3` for `add(a=1, b=2)` deployed on the LeanEngine production environment of the application.
56+
For example:
57+
58+
```js
59+
AV.Cloud.define('add', async function (request) {
60+
return request.params["a"] + request.params["b"]
61+
})
62+
```
63+
4864
Install dependencies:
4965

5066
```sh

0 commit comments

Comments
 (0)