services: # ── Backend: FastAPI inference server ───────────────────────────────────── - type: web name: cardioscreen-api runtime: python region: frankfurt plan: free buildCommand: pip install -r requirements.txt startCommand: uvicorn api:app --host 0.0.0.0 --port $PORT # ── Frontend: Vite static build ──────────────────────────────────────────── - type: web name: cardioscreen-ui runtime: static region: frankfurt buildCommand: cd webapp && npm ci && npm run build staticPublishPath: webapp/dist routes: - type: rewrite source: /* destination: /index.html