Vercel Deployment
-
Push to a new repo:
git remote add origin https://github.com/YOUR_USERNAME/anan-admin.git git commit -m "Initial commit" git push -u origin main -
Import in Vercel:
- Go to vercel.com → New Project → Import your
anan-adminrepo - Framework Preset: Next.js (auto-detected)
- Root Directory:
.(root)
- Go to vercel.com → New Project → Import your
-
Environment variables (required):
NEXT_PUBLIC_CONVEX_URL– Your Convex deployment URL (e.g.https://xxx.convex.cloud)NEXT_PUBLIC_CONVEX_SITE_URL– Your Convex site URL (e.g.https://xxx.convex.site)NEXT_PUBLIC_SITE_URL– Your app URL (e.g.https://admin.yourdomain.com)SITE_URL– Convex auth base URL (usually your Convex site URL)BETTER_AUTH_TRUSTED_ORIGINS– Comma-separated allowed origins (include your Vercel admin URL, e.g.https://anan-admin.vercel.app)
-
Convex backend – Deploy Convex from this repo:
npx convex deploy
Source captured: 2026-10-11