Steps
- Push your monorepo to GitHub.
- Import the repo at vercel.com/new. Create one Vercel project per app.
- Set the root directory for each project:
| Vercel Project | Root Directory |
|---|---|
| Main application | apps/app |
| Marketing website | apps/web |
| API layer | apps/api |
- Add environment variables from your
.envfile to each project:
| Variable | Description |
|---|---|
NEXT_PUBLIC_CONVEX_URL | Production Convex deployment URL |
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY | Clerk publishable key |
CLERK_SECRET_KEY | Clerk server-side secret |
NEXT_PUBLIC_APP_URL | Production URL for the main app |
NEXT_PUBLIC_WEB_URL | Production URL for the marketing site |
NEXT_PUBLIC_DOCS_URL | Production URL for the docs |
- Deploy. Pushes to
maintrigger automatic deployments.
Vercel Integrations
The Clerk integration and Convex integration auto-sync their keys to your Vercel projects.Documentation
Theapps/docs/ site deploys via Mintlify, not Vercel. Configure your docs domain in the Mintlify dashboard.