-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
48 lines (38 loc) · 1.26 KB
/
Copy pathrender.yaml
File metadata and controls
48 lines (38 loc) · 1.26 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
# MetaShift – Render blueprint
# Deploy: Connect this repo in Render and use "Blueprint" to create both services.
# Set environment variables in the Render dashboard for each service.
services:
# Backend API + WebSocket
- type: web
name: metashift-backend
runtime: node
region: oregon
buildCommand: npm ci
startCommand: npm start
rootDir: backend
healthCheckPath: /health
envVars:
- key: NODE_ENV
value: production
# Render sets PORT automatically. Add in dashboard: SUPABASE_URL, SUPABASE_SERVICE_KEY, SUPABASE_JWT_SECRET, CORS_ORIGIN
# Optional: GEMINI_API_KEY
# Frontend (static site) – set VITE_BACKEND_URL in dashboard after backend deploys
- type: web
name: metashift-frontend
runtime: static
region: oregon
buildCommand: npm ci && npm run build
staticPublishPath: dist
rootDir: frontend
routes:
- type: rewrite
source: /*
destination: /index.html
# Set in Render dashboard: VITE_BACKEND_URL (e.g. https://metashift-backend.onrender.com), VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY
envVars:
- key: VITE_BACKEND_URL
sync: false
- key: VITE_SUPABASE_URL
sync: false
- key: VITE_SUPABASE_ANON_KEY
sync: false