-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrender.yaml
More file actions
32 lines (31 loc) · 795 Bytes
/
render.yaml
File metadata and controls
32 lines (31 loc) · 795 Bytes
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
services:
# Backend Service
- type: web
name: lifeline-plus-backend
env: node
rootDir: backend
plan: free
buildCommand: npm install
startCommand: npm start
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 10000
# The following should be set in the Render Dashboard for security
# - key: MONGODB_URI
# sync: false
# - key: FIREBASE_PROJECT_ID
# sync: false
# Optional: Frontend Service on Render (as fallback or alternative)
- type: web
name: lifeline-plus-frontend
env: static
rootDir: frontend
plan: free
buildCommand: npm install && npm run build
staticPublishPath: dist
routes:
- type: rewrite
source: /*
destination: /index.html