File size: 1,023 Bytes
cc6cee7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
services:
  # Backend Service
  - type: web
    name: hunter-ai-backend
    env: python
    region: singapore
    plan: free
    buildCommand: pip install -r requirements.txt
    startCommand: python main.py
    rootDirectory: .
    envVars:
      - key: PYTHON_VERSION
        value: 3.10.0
      - key: FRONTEND_URL
        fromService:
          type: web
          name: hunter-ai-frontend
          property: url
      - key: OLLAMA_URL
        value: http://localhost:11434 # Placeholder, user must update this in Render dashboard
      - key: PORT
        value: 10000
      - key: GROQ_API_KEY
        sync: false

  # Frontend Service
  - type: web
    name: hunter-ai-frontend
    env: static
    region: singapore
    plan: free
    buildCommand: npm install && npm run build
    staticPublishPath: ./dist
    rootDirectory: frontend
    envVars:
      - key: VITE_API_URL
        fromService:
          type: web
          name: hunter-ai-backend
          property: url