-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
36 lines (35 loc) · 1 KB
/
render.yaml
File metadata and controls
36 lines (35 loc) · 1 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
services:
# Backend API (Stateless, Free Tier Compatible)
- type: web
name: promptprep-backend
env: node
plan: free # Supabase handles the database, so we can use the true free tier!
rootDir: backend
buildCommand: NODE_ENV=development npm install && npx prisma generate && npm run build
startCommand: npm start
envVars:
- key: DATABASE_URL
sync: false # Set this manually in Render dashboard to your Supabase pooler URL
- key: GEMINI_API_KEY
sync: false
- key: GROQ_API_KEY
sync: false
- key: NODE_ENV
value: production
# Frontend (Static Site)
- type: web
name: promptprep-frontend
env: static
rootDir: frontend
buildCommand: npm install && npm run build
staticPublishPath: ./dist
envVars:
- key: VITE_API_BASE_URL
fromService:
type: web
name: promptprep-backend
property: host
routes:
- type: rewrite
source: /*
destination: /index.html