31 lines
800 B
YAML
31 lines
800 B
YAML
services:
|
|
- type: web
|
|
name: tindagrid-backend
|
|
runtime: node
|
|
plan: free
|
|
region: singapore
|
|
rootDir: backend
|
|
buildCommand: npm install && npx prisma generate && npm run build
|
|
startCommand: npm run start:prod
|
|
healthCheckPath: /health
|
|
autoDeploy: true
|
|
envVars:
|
|
- key: PORT
|
|
value: 10000
|
|
- key: DATABASE_URL
|
|
sync: false
|
|
- key: JWT_SECRET
|
|
generateValue: true
|
|
- key: JWT_EXPIRES_IN
|
|
value: 30d
|
|
- key: CLOUDFLARE_R2_ACCOUNT_ID
|
|
sync: false
|
|
- key: CLOUDFLARE_R2_ACCESS_KEY_ID
|
|
sync: false
|
|
- key: CLOUDFLARE_R2_SECRET_ACCESS_KEY
|
|
sync: false
|
|
- key: CLOUDFLARE_R2_BUCKET_NAME
|
|
value: tindagrid-storefronts
|
|
- key: CLOUDFLARE_R2_PUBLIC_URL
|
|
sync: false
|