-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdeployment.config.json
More file actions
93 lines (93 loc) · 2.4 KB
/
deployment.config.json
File metadata and controls
93 lines (93 loc) · 2.4 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"deployment": {
"platforms": {
"vercel": {
"enabled": true,
"frontend": {
"projectName": "greenstagram-frontend",
"framework": "vite",
"buildCommand": "npm run build",
"outputDirectory": "build",
"nodeVersion": "18.x"
},
"backend": {
"projectName": "greenstagram-backend",
"runtime": "nodejs18.x",
"buildCommand": "npm run build",
"outputDirectory": "dist"
}
},
"netlify": {
"enabled": true,
"frontend": {
"buildCommand": "npm run build",
"publishDirectory": "build",
"functionsDirectory": "netlify/functions"
},
"backend": {
"buildCommand": "npm run build",
"functionsDirectory": "backend/dist"
}
},
"render": {
"enabled": true,
"frontend": {
"type": "static-site",
"buildCommand": "npm run build",
"publishDirectory": "build"
},
"backend": {
"type": "web-service",
"buildCommand": "npm run build",
"startCommand": "npm start",
"runtime": "node"
}
},
"azure": {
"enabled": true,
"frontend": {
"type": "static-web-app",
"appLocation": "frontend",
"outputLocation": "build"
},
"backend": {
"type": "web-app",
"runtime": "node:18-lts",
"appLocation": "backend"
}
},
"aws": {
"enabled": true,
"frontend": {
"type": "s3-cloudfront",
"bucket": "greenstagram-frontend",
"distributionId": "YOUR_DISTRIBUTION_ID"
},
"backend": {
"type": "lambda",
"runtime": "nodejs18.x",
"handler": "dist/index.handler"
}
}
}
},
"environment": {
"templates": {
"development": {
"NODE_ENV": "development",
"API_URL": "http://localhost:3001",
"FRONTEND_URL": "http://localhost:3000"
},
"staging": {
"NODE_ENV": "staging",
"API_URL": "https://api-staging.greenstagram.com",
"FRONTEND_URL": "https://staging.greenstagram.com"
},
"production": {
"NODE_ENV": "production",
"API_URL": "https://api.greenstagram.com",
"FRONTEND_URL": "https://greenstagram.com"
}
}
}
}