Deployment

Last updated on 2026-09-13

Deploy to Vercel

Step 1 -- Push to GitHub

git init
git add .
git commit -m "Initial commit"
gh repo create your-org/lms --private --source=.
git push -u origin main

Step 2 -- Import to Vercel

  1. Go to vercel.com/new
  2. Import the GitHub repository
  3. Set the framework preset to Next.js
  4. Add environment variables:
Variable Value
NEXT_PUBLIC_SUPABASE_URL Your Supabase project URL
NEXT_PUBLIC_SUPABASE_ANON_KEY Your Supabase anon key
SUPABASE_SERVICE_ROLE_KEY Your Supabase service role key
NEXT_PUBLIC_SITE_URL Your Vercel domain (e.g., https://your-app.vercel.app)
  1. Deploy

Step 3 -- Configure Supabase for Production

Update these Supabase settings for production:

Auth > URL Configuration:

  • Site URL: https://your-app.vercel.app
  • Redirect URLs: https://your-app.vercel.app/**

Auth > Providers:

  • Update OAuth redirect URIs to your Supabase project URL

Auth > Email Templates:

  • Customize email templates with your branding

Production Checklist

  • All migration files run on production Supabase
  • Seed data loaded (or cleaned for fresh start)
  • Environment variables set in Vercel
  • OAuth providers configured with production URLs
  • Supabase Site URL updated
  • Custom domain configured (optional)
  • Email templates customized

Other Hosting Options

The kit works on any Node.js host that supports Next.js:

  • AWS Amplify -- import from GitHub
  • Railway -- railway up
  • Render -- connect GitHub repo
  • Self-hosted -- pnpm build && pnpm start

All hosts need the same environment variables listed above.