services:
  - type: web
    name: legalease-ai
    runtime: python
    plan: free
    buildCommand: pip install -r requirements.txt
    startCommand: uvicorn backend.main:app --host 0.0.0.0 --port $PORT
    envVars:
      - key: GEMINI_API_KEYS
        sync: false          # paste your key in the Render dashboard — never in code
      - key: GEMINI_MODEL
        value: gemini-2.5-flash
      - key: SECRET_KEY
        generateValue: true  # Render generates a strong random secret for you
      - key: PYTHON_VERSION
        value: 3.12.7
