Skip to content

Commit 89ec134

Browse files
author
Uttam Singh
committed
Add Render deploy config
1 parent 9ba0a85 commit 89ec134

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

render.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
services:
2+
# === Backend (FastAPI + Docker) ===
23
- type: web
34
name: fat-eibl-backend
45
env: docker
@@ -16,10 +17,13 @@ services:
1617
- key: EMAIL_FROM
1718
1819

19-
- type: static
20+
# === Frontend (React + Vite build) ===
21+
- type: web
2022
name: fat-eibl-frontend
21-
buildCommand: npm run build
22-
publishPath: frontend/dist
23+
env: node
24+
plan: free
25+
buildCommand: cd frontend && npm install && npm run build
26+
startCommand: npx serve -s frontend/dist
2327
envVars:
2428
- key: VITE_API_URL
2529
value: https://fat-eibl-backend.onrender.com

0 commit comments

Comments
 (0)