Repository navigation
Expand file tree
/
Copy pathrender.yaml
More file actions
59 lines (58 loc) · 1.81 KB
/
Copy pathrender.yaml
File metadata and controls
59 lines (58 loc) · 1.81 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
# ── Backend FastAPI ──────────────────────────────────────────────
- type: web
plan: free
name: mlblock-backend
runtime: python
pythonVersion: 3.11
rootDir: backend
buildCommand: uv sync
startCommand: .venv/bin/uvicorn mlblock.server.main:app --host 0.0.0.0 --port $PORT
buildFilter:
ignoredPaths:
- frontend/**
- openspec/**
envVars:
# Database — Supabase PostgreSQL (transaction mode pooler)
- key: DATABASE_URL
sync: false
# Supabase project credentials
- key: SUPABASE_URL
sync: false
- key: SUPABASE_PUBLISHABLE_KEY
sync: false
- key: SUPABASE_SECRET_KEY
sync: false
- key: SUPABASE_JWKS_URL
sync: false
- key: SUPABASE_JWT_SECRET
sync: false
# GPU (Vast.ai)
- key: VAST_API_KEY
sync: false
# Mode d'exécution : gpu explicite en prod (défaut local en dev)
- key: MLBLOCK_RUN_MODE
value: gpu
# CORS — restrict to frontend
- key: CORS_ORIGINS
value: https://mlblock-frontend.onrender.com
# GPU callbacks
- key: BACKEND_URL
value: https://mlblock-backend.onrender.com
- key: GPU_API_KEY
generateValue: true
# ── Frontend React/Vite (TanStack Start SSG prerender → Static) ─
- type: web
name: mlblock-frontend
runtime: static
rootDir: frontend
buildCommand: pnpm install --frozen-lockfile && VITE_API_BASE_URL=https://mlblock-backend.onrender.com pnpm run build
buildFilter:
ignoredPaths:
- backend/**
- openspec/**
staticPublishPath: dist
routes:
- type: rewrite
source: /*
destination: /index.html