forked from marmelab/atomic-crm
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrender.yaml
More file actions
39 lines (37 loc) · 1.25 KB
/
render.yaml
File metadata and controls
39 lines (37 loc) · 1.25 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
services:
# Frontend — Static Site (React + FakeRest, no Supabase needed)
- type: web
name: atomic-crm-app
runtime: static
buildCommand: npm install && NODE_OPTIONS=--max-old-space-size=4096 npm run build:demo
staticPublishPath: ./dist
headers:
- path: /*
name: Cache-Control
value: public, max-age=0, must-revalidate
routes:
- type: rewrite
source: /*
destination: /index.html
envVars:
- key: VITE_COPILOTKIT_RUNTIME_URL
sync: false # Set to: https://<copilot-service>.onrender.com/api/copilotkit
# CopilotKit Runtime — Web Service (Hono + CopilotKit SDK)
- type: web
name: atomic-crm-copilot
runtime: node
buildCommand: cd server && npm install --legacy-peer-deps
startCommand: cd server && npm run start
envVars:
- key: OPENAI_API_KEY
sync: false
- key: MCP_SERVER_URL
sync: false # Set to: https://<mcp-service>.onrender.com/mcp
- key: ALLOWED_ORIGINS
sync: false # Set to: https://<static-site>.onrender.com
# MCP Contract Analyzer — Web Service
- type: web
name: atomic-crm-mcp
runtime: node
buildCommand: cd server && npm install --legacy-peer-deps
startCommand: cd server && npm run start:mcp