forked from zlisto/chatapp_websearch_code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
31 lines (28 loc) · 1.18 KB
/
render.yaml
File metadata and controls
31 lines (28 loc) · 1.18 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
# Render Blueprint — defines both services in one file.
# Docs: https://render.com/docs/blueprint-spec
services:
# ── Backend: Express API ────────────────────────────────────────────────────
- type: web
name: chatapp-backend
env: node
plan: free
buildCommand: npm install
startCommand: node server/index.js
envVars:
- key: MONGODB_URI
sync: false # set manually in the Render dashboard
# ── Frontend: React static site ────────────────────────────────────────────
- type: static
name: chatapp-frontend
plan: free
buildCommand: npm install && ./node_modules/.bin/react-scripts build
staticPublishPath: ./build
envVars:
- key: REACT_APP_GEMINI_API_KEY
sync: false # set manually — baked into JS bundle at build time
- key: REACT_APP_API_URL
sync: false # set to the backend URL, e.g. https://chatapp-backend.onrender.com
routes:
- type: rewrite
source: /*
destination: /index.html