-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathrender.yaml
More file actions
32 lines (31 loc) · 925 Bytes
/
Copy pathrender.yaml
File metadata and controls
32 lines (31 loc) · 925 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 API
- type: web
name: b2l-registration-api
env: python
region: singapore
plan: free
buildCommand: cd backend && pip install -r requirements.txt
startCommand: cd backend && uvicorn app.main:app --host 0.0.0.0 --port $PORT
envVars:
- key: TURSO_DATABASE_URL
value: libsql://b2lregistration-pandawhocodes.aws-ap-south-1.turso.io
- key: TURSO_AUTH_TOKEN
sync: false
- key: FRONTEND_URL
value: https://b2l-registration.onrender.com
# Frontend
- type: web
name: b2l-registration-frontend
env: static
region: singapore
plan: free
buildCommand: cd frontend && npm install && npm run build
staticPublishPath: ./frontend/dist
routes:
- type: rewrite
source: /*
destination: /index.html
envVars:
- key: VITE_API_URL
value: https://b2l-registration-api.onrender.com/api