This guide walks you through setting up continuous monitoring for your production sites, as well as automatic testing of every Preview Deployment.
To deploy your project with a Vercel for Git Integration, make sure it has been pushed to a Git repository.
Import the project into Vercel using your Git Integration of choice:
After your project has been imported, all subsequent pushes to branches will generate Preview Deployments, and all changes made to the default branch (commonly "master") will result in a Production Deployment.
Select the account or team your deployed project belongs to. You will then be redirected to DebugBear.
If you do not have a DebugBear account already, click Create account on DebugBear to automatically sign up with your Vercel email address. Otherwise, you can continue with your existing account.
When logged in with DebugBear, select which of your Vercel projects you would like to monitor and click Set up.
DebugBear will automatically start monitoring your project's homepage and up to 3 other pages on your site.
By default these pages are tested once a day from a US-based server, but you can change these settings later. Additionally, you can add any extra pages you would like to monitor.
Make some changes to your project, then push the branch to your git repository. Vercel will create a Preview Deployment, and DebugBear will test the performance of the deployed site.
You can see test results for your deployment in any of these places:
- The integration configuration page on Vercel
- The project Builds tab on DebugBear
- Posted to a Slack channel
- Or, on GitHub (described in the next section)
You can configure which of your monitored pages should be tested after each deployment. Normally you don't need to change anything here, but if you use a custom deployment suffix other than
now.sh you need to specify it.
By default, all DebugBear tests will finish in a
neutral state. To get meaningful
failure results you need to set up a performance budget that defines metric thresholds that shouldn't be exceeded.
If you use GitHub, DebugBear can report test results directly on your pull request. You need to install the DebugBear GitHub app.
Go to the Integrations tab of your DebugBear project and connect your user account to GitHub.
Click Install Github integration and grant access to the repository that contains your Vercel site.
After your next deployment, you will see one commit status on your GitHub pull request for each tested page.