Backend → Render
Infrastructure as Code
The render.yaml at the repo root defines the backend service:
services:
- type: web
name: fluxpay-backend
runtime: node
rootDir: backend
buildCommand: npm install
startCommand: npm start
healthCheckPath: /healthSetup
- Connect the repo in the Render dashboard
- Render picks up
render.yamlautomatically - Set these secrets in the Render environment:
| Secret | Purpose |
|---|---|
FRONTEND_URL | Your Vercel URL (for CORS) |
WEB3AUTH_CLIENT_ID | Must match frontend |
DATABASE_URL | Neon Postgres (optional) |
VENICE_API_KEY | AI verification (optional) |
FAUCET_PRIVATE_KEY | Testnet faucet (optional) |
AGENT_PRIVATE_KEY | On-chain redemption (optional) |
Health Check
Render uses /health to verify the service is running:
{
"status": "ok",
"service": "fluxpay-backend",
"storage": "postgres"
}Last updated on