git push origin mainOption A: Using the Dashboard (Easiest)
- Go to https://vercel.com/new
- Sign in with GitHub
- Click "Import" next to
HyperNoodlez/DoubleVision - Click "Deploy" (it will fail initially - that's okay!)
- Go to Settings → Environment Variables
- Add all variables from
.env.local(see below) - Redeploy from Deployments tab
Option B: Using CLI (Faster if you have it)
# Install Vercel CLI
npm i -g vercel
# Login
vercel login
# Deploy
vercel --prodIn Vercel Dashboard → Settings → Environment Variables, add:
MONGODB_URI=<your-mongodb-connection-string>
NEXTAUTH_URL=<your-vercel-url> # e.g., https://doublevision.vercel.app
NEXTAUTH_SECRET=<generate-with: openssl rand -base64 32>
AUTH_GOOGLE_ID=<from-google-console>
AUTH_GOOGLE_SECRET=<from-google-console>
AUTH_GITHUB_ID=<from-github-settings>
AUTH_GITHUB_SECRET=<from-github-settings>
GEMINI_API_KEY=<your-gemini-key>Important: Set these for both Production and Preview environments!
Google:
- Go to https://console.cloud.google.com/apis/credentials
- Add:
https://your-vercel-url.vercel.app/api/auth/callback/google
GitHub:
- Go to https://github.com/settings/developers
- Add:
https://your-vercel-url.vercel.app/api/auth/callback/github
- Visit your Vercel URL
- Test login with Google/GitHub
- Upload a photo
- Submit a review
Your beta is live at: https://your-app-name.vercel.app
- Full guide: See
DEPLOYMENT.md - Vercel errors: Run
vercel logs - Database issues: Check MongoDB Atlas → Network Access
- OAuth not working: Verify redirect URIs match exactly
Run this anytime to deploy changes:
./deploy.shWatch logs in real-time:
vercel logs --followCheck Vercel Dashboard: https://vercel.com/dashboard