Vercel Integration

Automatically run Bug0 tests when Vercel deployments complete.

Features

Vercel integration provides:

Setting Up Vercel

Step 1: Connect Vercel

  1. Open your project
  2. Go to Project SettingsIntegrationsVercel
  3. Click Connect to Vercel
  4. Authorize Bug0 to access your Vercel account
  5. Select which Vercel project to connect

Step 2: Configure Triggers

Choose when to run tests:

OptionDescription
Preview deploymentsRun on PR/branch deploys
Production deploymentsRun on production deploys
BothRun on all deployments

How It Works

1. You push code to GitHub
2. Vercel creates a deployment
3. Deployment succeeds
4. Bug0 receives webhook notification
5. Tests run against deployment URL
6. Results sent to configured channels

Deployment Types

Preview Deployments

Created for:

URL format: https://project-git-branch.vercel.app

Production Deployments

Created when:

URL: Your configured production domain

Test Configuration

What Gets Tested

When triggered by Vercel:

URL Handling

Bug0 automatically uses the Vercel deployment URL, overriding your project's base URL for that run.

GitHub Integration

When both Vercel and GitHub are connected:

For the best experience, connect both Vercel and GitHub integrations. Vercel triggers the tests, GitHub receives the results.

Managing the Integration

View Connection Status

Go to Project SettingsIntegrationsVercel to see:

Change Vercel Project

  1. Open Vercel integration settings
  2. Select a different project
  3. Save

Disconnect Vercel

  1. Open Vercel integration settings
  2. Click Disconnect
  3. Confirm

Troubleshooting

Tests Not Triggering

  1. Verify Vercel integration is connected
  2. Check deployment type matches configuration
  3. Verify webhook is configured in Vercel
  4. Check deployment succeeded (failed deploys don't trigger)

Wrong URL Being Tested

  1. Verify Vercel project is correct
  2. Check deployment URL in test logs
  3. Ensure no URL override in API call

Vercel Project Not Listed

  1. Ensure Bug0 has access to the project
  2. Check Vercel account permissions
  3. Try reconnecting the integration

Best Practices

Test Preview Deployments

Run tests on every PR:

Monitor Production

Also run on production deploys:

Combine with GitHub

Connect both integrations: