Deployment Overview
VeloxTS applications can be deployed to various platforms.
Supported Platforms
Section titled “Supported Platforms”| Platform | Type | Best For |
|---|---|---|
| Railway | PaaS | Quick deploys, scaling |
| Render | PaaS | Free tier, simplicity |
| Fly.io | Edge | Global distribution |
| Docker | Container | Self-hosted, Kubernetes |
| Vercel | Serverless | RSC apps |
Pre-Deployment Checklist
Section titled “Pre-Deployment Checklist”- Set
NODE_ENV=production - Configure production database URL
- Set secure JWT secrets (32+ chars)
- Run
pnpm build - Run
pnpm prisma migrate deploy - Configure health check endpoint
Environment Variables
Section titled “Environment Variables”NODE_ENV=productionDATABASE_URL=postgresql://...JWT_SECRET=your-secure-secret-min-32-charsJWT_REFRESH_SECRET=another-secure-secretPORT=3030Health Check
Section titled “Health Check”Ensure /api/health returns 200:
curl https://your-app.com/api/health# {"status":"ok","timestamp":"..."}Next Steps
Section titled “Next Steps”- Docker - Container deployment
- Railway - PaaS deployment
- Production Checklist - Full checklist