-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
26 lines (25 loc) · 1.22 KB
/
Copy pathrender.yaml
File metadata and controls
26 lines (25 loc) · 1.22 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
services:
- type: web
name: interviewundo-backend
env: node
buildCommand: npm install && npx turbo run build --filter=@interviewprep/backend-api && npx prisma generate --schema=apps/backend-api/src/infrastructure/database/prisma/schema.prisma && npx prisma migrate deploy --schema=apps/backend-api/src/infrastructure/database/prisma/schema.prisma
startCommand: npm run start --workspace=apps/backend-api
envVars:
- key: NODE_ENV
value: production
- key: PORT
value: 4000
- key: DATABASE_URL
sync: false # You will need to provide your production database URL in the Render dashboard
- key: REDIS_URL
sync: false # You will need to provide your production Redis URL in the Render dashboard
- key: JWT_ACCESS_SECRET
generateValue: true
- key: JWT_REFRESH_SECRET
generateValue: true
- key: FRONTEND_URL
sync: false # Set this to your frontend URL (e.g., https://interviewundo.vercel.app)
- key: CORS_ORIGINS
sync: false # Same as FRONTEND_URL
- key: AUTH_SHARED_SECRET
generateValue: true # Render will generate a secure key; copy this key to your frontend's environment variables (AUTH_SHARED_SECRET)