Deploy to Vercel

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.


Before you begin

You'll need:

  • A CamelMind documentation project
  • A GitHub repository containing your project
  • A Vercel account

Deploy your CamelMind site to Vercel

Follow these steps to build, configure, and deploy your CamelMind site to Vercel:

1

Push your project to GitHub

Commit your project and push it to a GitHub repository.

bash
git add .
git commit -m "Initial commit"
git push
Note

If you haven't created a repository yet, create one on GitHub first, then push your project.

2

Import the repository into Vercel

  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.

3

Configure environment variables

Before deploying, configure your project's environment variables.

VariableDescription
CAMELMIND_URLThe public URL of your documentation site.
SESSION_SECRETRequired when authentication is enabled.

If you're using OpenID Connect (OIDC), also configure:

  • OIDC_ISSUER
  • OIDC_CLIENT_ID
  • OIDC_CLIENT_SECRET

See Environment Variables for the complete list of supported variables.

4

Deploy

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 on Vercel

To set up a custom domain for your Vercel deployment, follow these steps:

  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 for pull requests on Vercel

When you create or update a pull request, Vercel automatically builds and assigns a unique preview deployment URL to test your CamelMind changes.


Troubleshooting Vercel deployments

If you encounter issues when deploying your site to Vercel, refer to these common troubleshooting solutions:

The build fails

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
Authentication redirects to the wrong URL

Verify that CAMELMIND_URL exactly matches your site's public HTTPS URL, without a trailing slash.

Environment variables aren't available

Environment variables must be configured in your Vercel project settings.

After adding or updating variables, redeploy your project.

September 3, 2026
Was this page helpful?