GuidesDeployment
Deployment
Deploy BetterCone to production
Deployment Guide
Deploy BetterCone to production on Vercel with proper configuration and best practices.
BetterCone is optimized for Vercel with automatic CI/CD and edge functions.
Deployment Steps
Vercel Setup
Quick deploy from GitHub to Vercel
Service Configuration
Configure Convex, Stripe, and email services
Custom Domains
Set up custom domain and SSL
Production Checklist
CI/CD, monitoring, security, and optimization
Prerequisites
Before deploying:
- GitHub repository
- Vercel account
- Stripe account
- Convex account
- Domain name (optional)
Quick Start
-
Push to GitHub
git push origin main -
Deploy to Vercel
- Go to vercel.com/new
- Import your repository
- Add environment variables
- Deploy
-
Configure Services
- Set up Convex production
- Configure Stripe webhooks
- Test payment flow
-
Custom Domain
- Add domain in Vercel
- Update DNS records
- Enable SSL
Environment Variables
# Core
NEXT_PUBLIC_SITE_URL=https://yourdomain.com
BETTER_AUTH_SECRET=your-secret
# Convex (Production)
CONVEX_DEPLOYMENT=prod:your-deployment
NEXT_PUBLIC_CONVEX_URL=https://your-deployment.convex.cloud
# Stripe (Live)
STRIPE_SECRET_KEY=sk_live_...
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_live_...
STRIPE_WEBHOOK_SECRET=whsec_...
# Email
RESEND_API_KEY=re_...