claim/render.yaml
Syazwan 2613c9d337 Refocus repository on Claim App and enable Render GitHub deploys.
Remove ProcureFlow/Celery legacy, Cursor rules bundle, and scratch artifacts; add claim API routes, deploy docs with auto-deploy, and a claim-focused README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-01 19:58:43 +08:00

66 lines
1.6 KiB
YAML

# Claim App — Render Blueprint
# New → Blueprint → connect repo → set sync:false secrets → Apply
# https://render.com/docs/blueprint-spec
services:
- type: web
name: claim-api
runtime: docker
region: singapore
plan: free
dockerfilePath: ./backend/Dockerfile
dockerContext: .
dockerCommand: python -m uvicorn server:app --host 0.0.0.0 --port $PORT
healthCheckPath: /api/health
autoDeploy: true
envVars:
- key: DB_NAME
value: claim
- key: ADMIN_NAME
value: Administrator
- key: AUTH_GOOGLE_ONLY
value: "false"
- key: R2_KEY_PREFIX
value: claims
- key: JWT_SECRET
generateValue: true
- key: MONGO_URL
sync: false
- key: ADMIN_EMAIL
sync: false
- key: ADMIN_PASSWORD
sync: false
- key: FRONTEND_URL
sync: false
- key: CORS_ORIGINS
sync: false
- key: GOOGLE_CLIENT_ID
sync: false
- key: GOOGLE_CLIENT_SECRET
sync: false
- key: GOOGLE_REDIRECT_URI
sync: false
- key: R2_BUCKET_NAME
sync: false
- key: R2_ENDPOINT_URL
sync: false
- key: R2_ACCESS_KEY_ID
sync: false
- key: R2_SECRET_ACCESS_KEY
sync: false
- type: web
name: claim-web
runtime: static
buildCommand: cd frontend && yarn install --frozen-lockfile && yarn build
staticPublishPath: ./frontend/build
autoDeploy: true
pullRequestPreviewsEnabled: false
envVars:
- key: REACT_APP_BACKEND_URL
sync: false
routes:
- type: rewrite
source: /*
destination: /index.html