@bettercone/ui
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

Prerequisites

Before deploying:

Quick Start

  1. Push to GitHub

    git push origin main
  2. Deploy to Vercel

    • Go to vercel.com/new
    • Import your repository
    • Add environment variables
    • Deploy
  3. Configure Services

    • Set up Convex production
    • Configure Stripe webhooks
    • Test payment flow
  4. 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_...

Resources