Skip to content

Render

Render provides managed hosting with a free tier suitable for prototypes and small projects. This page covers deploying a Velox TS application to Render — build commands, environment configuration, and the platform-specific considerations to be aware of.

  1. Connect Render to your GitHub repository
  2. Select “Web Service”
  3. Configure build and start commands

Build Command:

Terminal window
pnpm install && pnpm build && pnpm prisma generate

Start Command:

Terminal window
pnpm prisma migrate deploy && node dist/index.js

Set in Render dashboard:

NODE_ENV=production
DATABASE_URL=your-postgres-url
JWT_SECRET=your-secret
JWT_REFRESH_SECRET=your-refresh-secret
  1. Create a new PostgreSQL database in Render
  2. Copy the Internal Database URL
  3. Set as DATABASE_URL environment variable

Configure health check path: /api/health

For Infrastructure as Code:

services:
- type: web
name: my-velox-app
env: node
buildCommand: pnpm install && pnpm build && pnpm prisma generate
startCommand: pnpm prisma migrate deploy && node dist/index.js
healthCheckPath: /api/health
envVars:
- key: NODE_ENV
value: production
- key: DATABASE_URL
fromDatabase:
name: my-db
property: connectionString