-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
34 lines (34 loc) · 945 Bytes
/
render.yaml
File metadata and controls
34 lines (34 loc) · 945 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
33
34
services:
- type: web
name: chatapp-backend
runtime: node
buildCommand: npm run build
startCommand: npm start
envVars:
- key: PORT
value: 10000
- key: MONGO_DB
fromSecret: MONGO_DB_URL
- key: JWT_SECRET
fromSecret: JWT_SECRET
- key: CLOUDINARY_CLOUD_NAME
fromSecret: CLOUDINARY_CLOUD_NAME
- key: CLOUDINARY_API_KEY
fromSecret: CLOUDINARY_API_KEY
- key: CLOUDINARY_API_SECRET
fromSecret: CLOUDINARY_API_SECRET
- key: NODE_ENV
value: production
- key: CORS_ORIGINS
value: https://justchat-d566.onrender.com
- type: static
name: chatapp-frontend
buildCommand: npm run build
staticPublishPath: frontend/dist
routes:
- type: rewrite
source: /api/*
destination: https://justchat-d566.onrender.com/api/*
- type: rewrite
source: /*
destination: /index.html