Skip to content

16 Production Deployment

Vicky Patel edited this page Nov 18, 2026 · 1 revision

16. Production Deployment & Vercel Configuration

Production Deployment Runbook, Environment Variables, and Edge Caching Setup


πŸš€ Deployment Platform: Vercel

The production web platform for GitVerse is deployed on Vercel with global edge CDN routing:


πŸ” Production Environment Variables

To deploy an instance of GitVerse, configure the following environment variables in the Vercel Project Dashboard:

Variable Name Required Description Example / Recommended Value
GH_BOT_TOKEN Yes GitHub PAT used for /api/stars edge caching and public scraping rate limit fallback ghp_xxxxxxxxxxxxxxxxxxxx
STATE_SECRET Yes High-entropy random secret for signing OAuth state anti-CSRF HMAC tokens openssl rand -hex 32
BASE_URL Yes Canonical root URL of the deployment https://mygitverse.vercel.app
GITHUB_CLIENT_ID Optional GitHub OAuth Application Client ID for one-click private repo authorization Ov23likBynkGbUgqYP1r
GITHUB_CLIENT_SECRET Optional GitHub OAuth Application Client Secret Stored securely in Vercel Secret Store

βš™οΈ Configuring a GitHub OAuth Application

To enable one-click private repository authorization for your deployment:

  1. Navigate to GitHub Settings βž” Developer settings βž” OAuth Apps βž” New OAuth App.
  2. Set Application name: GitVerse
  3. Set Homepage URL: https://mygitverse.vercel.app
  4. Set Authorization callback URL: https://mygitverse.vercel.app/auth/callback
  5. Generate a Client Secret and copy both Client ID and Client Secret into your Vercel Environment Variables.

πŸ”„ Deployment Workflows

Automatic Deployments

Every push to the main branch triggers an automated Vercel production deployment. Every pull request receives an isolated preview deployment URL (e.g. https://gitverse-git-feat-xxx.vercel.app).

Manual CLI Deployment

If deploying via the Vercel CLI:

# Deploy preview build
vercel

# Deploy to production
vercel --prod

Clone this wiki locally