Vercel Deployment
This document describes how to deploy OpenHuman to Vercel.
Prerequisites
- Vercel account
- GitHub repository
Deployment Steps
1. Import Project
- Log in to Vercel
- Click Add New → Project
- Select the repository to deploy
2. Configure Build
| Setting | Value |
|---|---|
| Framework Preset | Next.js |
| Build Command | npm run build |
| Output Directory | out |
3. Environment Variables
Add the following environment variables:
OPENHUMAN_API_KEY=sk_xxx
NEXT_PUBLIC_API_URL=https://api.tinyhumans.ai
4. Deploy
Click Deploy to start deployment.
vercel.json Configuration
{
"buildCommand": "npm run build",
"outputDirectory": "out",
"framework": "nextjs",
"rewrites": [
{
"source": "/api/:path*",
"destination": "https://api.tinyhumans.ai/:path*"
}
]
}
Continuous Deployment
Push to main branch to automatically trigger deployment.
Custom Domain
- Go to project Settings → Domains
- Add your domain name
- Configure DNS records
Common Issues
Build Failed
Check if the build script in package.json is correct.
API Proxy Issues
Ensure the rewrites configuration in vercel.json is correct.
Next Steps
- Docker Deployment - Docker container deployment
- Cloudflare Pages Deployment - Cloudflare Pages deployment