cyrux

Deployment

Vercel

Deploy your app to Vercel

Deploy to Vercel

Connect your repository

  1. Go to Vercel and sign in with your GitHub account
  2. Click Add New Project and select your repository
  3. Configure the following:
    • Framework Preset: Next.js
    • Build Command: pnpm run build or next build
    • Output Directory: .next

Configure environment variables

Add these environment variables in your Vercel project settings:

VariableValue
NEXT_PUBLIC_CONVEX_URLYour Convex production URL (ends with .convex.cloud)
NEXT_PUBLIC_CONVEX_SITE_URLYour Convex production URL (ends with .convex.site)
CONVEX_DEPLOYMENTYour Convex production deployment ID (e.g., prod:your-deployment)
CONVEX_DEPLOY_KEYYour Convex deploy key (generate from Convex dashboard)

For more details, see Environment Variables.

Deploy

Click Deploy to start the deployment. Once complete, your app will be live at https://your-project.vercel.app.

Verify deployment

  1. Visit your deployed site
  2. Test that authentication works
  3. Test any Convex-powered features
  4. Check that environment variables are properly set

Troubleshooting

Build fails

Make sure you're using the correct package manager (pnpm) in your Vercel project settings.

Convex connection errors

Verify that:

  • NEXT_PUBLIC_CONVEX_URL is set correctly
  • CONVEX_DEPLOYMENT matches your Convex production deployment
  • CONVEX_DEPLOY_KEY is valid and not expired

Custom domain

To add a custom domain, go to Settings → Domains in your Vercel project and follow the instructions to configure DNS records.

On this page