-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcloudbaserc.json
More file actions
53 lines (53 loc) · 1.3 KB
/
Copy pathcloudbaserc.json
File metadata and controls
53 lines (53 loc) · 1.3 KB
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
47
48
49
50
51
52
53
{
"version": "2.0",
"envId": "{{env.ENV_ID}}",
"$schema": "https://framework-1258016615.tcloudbaseapp.com/schema/latest.json",
"functionRoot": "./todo-api/dist",
"framework": {
"name": "todo",
"hooks": {
"preDeploy": {
"type": "execCommand",
"commands": [
"npm i -g yarn --force && yarn config set registry https://registry.npmjs.org",
"yarn install",
"cd todo-web && yarn install && yarn build",
"cd todo-api && yarn install && yarn build"
]
}
},
"plugins": {
"function": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./todo-api/dist",
"functions": [
{
"name": "todo",
"envVariables": {
"JWT_SECRET": "{{env.JWT_SECRET}}"
},
"runtime": "Nodejs12.16"
}
],
"servicePaths": {
"todo": "/"
}
}
},
"db": {
"use": "@cloudbase/framework-plugin-database",
"inputs": {
"collections": [
{
"collectionName": "todo-user"
},
{
"collectionName": "todo-todo"
}
]
}
}
}
}
}