---
title: Deploy to Vercel
description: Deploy your CamelMind documentation site to Vercel in minutes.
---
Vercel makes it easy to deploy your CamelMind documentation site. It automatically builds and deploys your site on every Git push, provides HTTPS out of the box, and creates preview deployments for pull requests.
---
You'll need:
- A CamelMind documentation project
- A GitHub repository containing your project
- A Vercel account
---
## Deploy your site
Commit your project and push it to a GitHub repository.
```bash
git add .
git commit -m "Initial commit"
git push
```
If you haven't created a repository yet, create one on GitHub first, then push your project.
1. Sign in to Vercel.
2. Select **Add New → Project**.
3. Choose your GitHub repository.
4. Click **Import**.
CamelMind is built on Next.js, so Vercel automatically detects the project and configures the build settings.
Before deploying, configure your project's environment variables.
| Variable | Description |
| --- | --- |
| `CAMELMIND_URL` | The public URL of your documentation site. |
| `SESSION_SECRET` | Required when authentication is enabled. |
If you're using OpenID Connect (OIDC), also configure:
- `OIDC_ISSUER`
- `OIDC_CLIENT_ID`
- `OIDC_CLIENT_SECRET`
See [Environment Variables](/reference/environment-variables) for the complete list of supported variables.
Click **Deploy**.
Vercel builds and publishes your documentation site. Once deployment completes, your site is available at its public URL.
Every future push to your default branch automatically triggers a new deployment.
---
## Use a custom domain
To use your own domain:
1. Open your Vercel project.
2. Go to **Settings → Domains**.
3. Add your domain and follow the DNS instructions.
4. Update `CAMELMIND_URL` to match your new HTTPS URL.
---
## Preview deployments
Every pull request automatically receives its own preview deployment.
This allows reviewers to browse documentation changes before they're merged into your main branch.
---
## Troubleshooting
Verify that all project dependencies are committed to your repository.
If you've recently installed new packages:
```bash
npm install
git add package.json package-lock.json
git commit -m "Update dependencies"
git push
```
Verify that `CAMELMIND_URL` exactly matches your site's public HTTPS URL, without a trailing slash.
Environment variables must be configured in your Vercel project settings.
After adding or updating variables, redeploy your project.