-
Notifications
You must be signed in to change notification settings - Fork 4
/
cloudbaserc.json
46 lines (46 loc) · 1.1 KB
/
cloudbaserc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"version": "2.0",
"envId": "{{env.ENV_ID}}",
"$schema": "https://framework-1258016615.tcloudbaseapp.com/schema/latest.json",
"functionRoot": "./functions",
"framework": {
"name": "navigation",
"hooks": {
"preDeploy": {
"type": "execCommand",
"commands": [
"npm i -g yarn --force && yarn config set registry https://registry.npmjs.org",
"yarn install && yarn build"
]
}
},
"plugins": {
"function": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "dist",
"functions": [
{
"name": "navigation",
"envVariables": {
"DEFAULT_URL": "{{env.DEFAULT_URL}}"
},
"runtime": "Nodejs12.16",
"memorySize": 256
}
]
}
},
"db": {
"use": "@cloudbase/framework-plugin-database",
"inputs": {
"collections": [
{
"collectionName": "navigation"
}
]
}
}
}
}
}