Render
Deploy to Render
Render offers straightforward deployment with predictable pricing.
Setup
1. Create Web Service
- Go to dashboard.render.com
- Click "New" → "Web Service"
- Connect your GitHub repository
2. Configure Build
Set the build configuration:
| Setting | Value |
|---|---|
| Root Directory | apps/web |
| Build Command | pnpm install && pnpm build |
| Start Command | pnpm start |
| Environment | Node |
3. Environment Variables
Add environment variables in the Environment tab:
DATABASE_URL=postgresql://...
BETTER_AUTH_SECRET=your-secret-key
NODE_VERSION=204. Deploy
Click "Create Web Service". Render will:
- Clone your repository
- Install dependencies
- Build and start the application
Database on Render
Render can host your PostgreSQL database:
1. Create Database
- Click "New" → "PostgreSQL"
- Configure size and region
- Create database
2. Connect
- Copy the Internal Database URL
- Add as
DATABASE_URLto your web service
Custom Domain
- Go to your service → Settings → Custom Domains
- Add your domain
- Update DNS records
- Render automatically provisions SSL
Blueprint (Infrastructure as Code)
Define your infrastructure in render.yaml:
services:
- type: web
name: web
env: node
rootDir: apps/web
buildCommand: pnpm install && pnpm build
startCommand: pnpm start
envVars:
- key: DATABASE_URL
fromDatabase:
name: mydb
property: connectionString
- key: BETTER_AUTH_SECRET
generateValue: true
databases:
- name: mydb
plan: freeAuto-Deploy
Render automatically deploys on push to your default branch. Configure in Settings:
- Enable/disable auto-deploy
- Set deploy branch
- Configure deploy hooks
Scaling
Vertical Scaling
Upgrade your instance type for more resources:
- Starter: 512 MB RAM
- Standard: 2 GB RAM
- Pro: 4+ GB RAM
Horizontal Scaling
Available on Team plans:
- Go to Settings → Scaling
- Set number of instances
Troubleshooting
Build Failures
Check the build logs. Common issues:
- Missing Node.js version (set
NODE_VERSION=20) - Memory limits (upgrade plan or optimize build)
- Missing dependencies
Cold Starts
Free tier services spin down after inactivity. Upgrade to paid plans for always-on.
Next Steps
- Render Docs — Full documentation
- Render Blueprints — Infrastructure as code