Deployment
Deployment Overview
Deploy your TurboKit application to production
Deployment Overview
TurboKit is a monorepo with multiple applications that can be deployed to different platforms.
Architecture
| Service | Platform | Port | Description |
|---|---|---|---|
| Web | Vercel | 4100 | Next.js frontend |
| API | Railway/Render | 4101 | Elysia.js backend |
| Database | Supabase/Neon | 5432 | PostgreSQL |
Deployment Options
Frontend (Next.js)
- Vercel - One-click deploy, zero configuration, automatic SSL, and global CDN
Backend (Elysia.js)
- Railway - Deploy with Bun runtime support
- Render - Alternative platform for backend services
- Fly.io - Edge deployment for low-latency API responses
Database
- Supabase - Managed PostgreSQL with built-in auth, storage, and real-time features
- Neon - Serverless PostgreSQL with auto-scaling and branching
Quick Deploy
Deploy to production instantly with Vercel:
Note: This deploys only the frontend. You'll need to deploy the API separately using Railway, Render, or another platform that supports Bun runtime.
Environment Variables
Required Variables
| Variable | Description | Example |
|---|---|---|
DATABASE_URL | PostgreSQL connection string | postgresql://user:pass@host:5432/db |
JWT_SECRET | Secret key for JWT tokens | your-super-secret-jwt-key... |
SESSION_SECRET | Secret key for session encryption | your-session-secret-key... |
NEXT_PUBLIC_API_URL | Your deployed API URL | https://api.yourdomain.com |
Full Stack Deployment
See Vercel Deployment for detailed instructions.