-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yaml
More file actions
31 lines (30 loc) · 976 Bytes
/
Copy pathrender.yaml
File metadata and controls
31 lines (30 loc) · 976 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
services:
# ── Backend: FastAPI on Render Web Service ──────────────────
- type: web
name: silentsigns-api
runtime: python
region: singapore # closest to Bangalore
plan: free
rootDir: backend
buildCommand: pip install -r requirements.txt
startCommand: uvicorn main:app --host 0.0.0.0 --port $PORT
envVars:
- key: PYTHON_VERSION
value: 3.11.0
healthCheckPath: /health
# ── Frontend: React Static Site ─────────────────────────────
- type: web
name: silentsigns-frontend
runtime: static
region: singapore
plan: free
rootDir: frontend
buildCommand: npm install && npm run build
staticPublishPath: ./dist
envVars:
- key: VITE_API_URL
value: https://silentsigns-api.onrender.com
routes:
- type: rewrite
source: /*
destination: /index.html