Repository navigation
Expand file tree
/
Copy pathconfig.example.json
More file actions
56 lines (56 loc) · 1.67 KB
/
Copy pathconfig.example.json
File metadata and controls
56 lines (56 loc) · 1.67 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
54
55
56
{
"maxConcurrentDeploys": 1,
"reconcileIntervalMs": 300000,
"deployTimeoutMs": 1200000,
"repos": {
"your-org/your-app": {
"name": "My App",
"localPath": "/home/deploy/your-app",
"deployPath": "/var/www/your-app",
"branch": "main",
"preBuild": [
{
"file": "vite.config.ts",
"find": "export default defineConfig({",
"replace": "export default defineConfig({\n base: \"/app/\","
},
{
"file": "src/App.tsx",
"find": "<BrowserRouter>",
"replace": "<BrowserRouter basename=\"/app\">"
},
{
"file": "src/lib/matrix-sso.ts",
"find": "const BASE_PATH = '/matrix-apps-template'",
"replace": "const BASE_PATH = '/app'"
}
],
"buildCmd": "NODE_OPTIONS='--dns-result-order=ipv4first' npm install --include=dev --prefer-online --no-audit --no-fund && npm run build",
"buildTimeoutSec": 900,
"distFolder": "dist",
"postDeploy": [],
"cloudfront": {
"distributionId": "E1XXXXXXXXXX",
"invalidationPaths": ["/*"]
},
"cloudflare": {
"zoneId": "your-zone-id",
"purgeEverything": true,
"apiTokenKey": "CF_API_TOKEN"
},
"secret": "WEBHOOK_SECRET_MY_APP"
},
"your-org/api-service": {
"name": "API Service",
"localPath": "/home/deploy/api-service",
"deployPath": "/var/www/api",
"branch": "production",
"preBuild": [],
"buildCmd": "npm ci && npm run build",
"distFolder": "build",
"postDeploy": ["pm2 restart api-service"],
"cloudfront": {},
"secret": "WEBHOOK_SECRET_API"
}
}
}