---
title: Deployment Checks
description: Set conditions that must be met before proceeding to the next phase of the deployment lifecycle.
url: "https://vercel.com/docs/deployment-checks"
last_updated: 2026-08-11
related:
  - /docs/flags/flags-sdk-reference
  - /docs/flags/vercel-flags
  - /docs/git/vercel-for-github
  - /docs/deployments/promoting-a-deployment
  - /docs/rolling-releases
install_vercel_plugin: npx plugins add vercel/vercel-plugin
search_with_vercel_cli: npx vercel@latest docs search "<query>"
search_kb_with_vercel_cli: npx vercel@latest kb search "<query>"
---

# Deployment Checks

Deployment Checks are conditions that must be met before promoting a production build to your production environment.

When you add Deployment Checks to a project, Vercel will hold each production deployment until all required checks pass before assigning it to your custom production domains.

## Understanding Deployment Checks

Decoupling production builds and releases allows teams to move faster with higher confidence at scale.

- Feature branches are worked on in isolation and merged to the default branch once the code passes required checks for merging.
- Production deployments are created after new code is merged, but must pass a set of required checks before being released to end users.

By default, Vercel automatically promotes your most recent, successful production build to your custom production domains. This creates the following release workflow:

1. Push or merge code to your default branch.
2. Vercel creates a production build.
3. Once the build is ready, release the build to production.

At scale, this can mean the set of code that is tested **before merging** is not the same as the code that would be released to end users. We want to maintain the safety of releases, while allowing developers and [agents](/kb/guide/how-to-build-ai-agents-with-vercel-and-the-ai-sdk "AI Agents") to continue authoring and merging code at high velocity.

With Deployment Checks, you introduce a new step that ensures the safety of the production deployment before it's released, with the following workflow:

1. Push or merge code to your default branch.
2. Vercel creates a production deployment.
3. **Run safety checks to ensure that the build is safe for release.**
4. **Once Deployment Checks are passing**, release the build to production.

## Types of Deployment Checks

You can add Deployment Checks from multiple sources:

- **Native Deployment Checks (Vercel)**: Vercel runs built-in checks for your deployment, including script-based lint and typecheck jobs, and Vercel-provided checks such as Microfrontends Config Present and Flag Definitions Present.

* **GitHub Checks**: Import GitHub Actions workflow results as Deployment Checks. Vercel reads commit statuses and check run results to determine if a deployment should be promoted.
* **Integration Checks**: Third-party integrations from the [Vercel Marketplace](/marketplace) can provide checks for testing, monitoring, and observability.

## Native Deployment Checks

Native Deployment Checks let Vercel run checks directly on your deployment, without requiring external CI configuration. Script-based checks clone your repository, install dependencies, and run the corresponding script from your `package.json`.

### Available checks

| Check                             | Script                                      | Description                                                                       |
| --------------------------------- | ------------------------------------------- | --------------------------------------------------------------------------------- |
| **Lint**                          | `lint`                                      | Catches code style issues and potential errors                                    |
| **Typecheck**                     | `typecheck`, `type-check`, or `check-types` | Verifies type safety across your codebase                                         |
| **Microfrontends Config Present** | —                                           | Verifies that `microfrontends.json` is included in the deployment's build outputs |

### Requirements

- Script-based checks require a `package.json` with a matching script for each check you enable. If no matching script is found, the check is automatically skipped.
- Supported package managers: npm, pnpm, yarn, and bun (detected from your lock file).

* Flag Definitions Present requires the [Flags SDK](/docs/flags/flags-sdk-reference) with a `FLAGS_SECRET` configured. It does not use `package.json` scripts.

### Adding Native Deployment Checks

- ### Navigate to Deployment Checks settings
  Visit [your project's Deployment Checks settings](https://vercel.com/d?to=%2F%5Bteam%5D%2F%5Bproject%5D%2Fsettings%2Fbuild-and-deployment%23deployment-checks) and select **Add Checks**.

- ### Select Vercel as the provider
  In the provider selection step, choose **Vercel**, then select **Next**.

- ### Choose which checks to enable
  Select **Lint**, **Typecheck**, or both. Each check corresponds to a script in your `package.json`. **Flag Definitions Present** also appears when it is available for your project. Then select **Add**.

- ### Checks run on your next deployment
  After adding, the selected checks will run on each new deployment. You can view check status, logs, and results directly in the deployment detail view.

### Configuring environments

By default, Native Deployment Checks run on all deployment environments. You can configure which environments each check runs on (for example, production only, or both production and preview) from the check's settings in the Deployment Checks list.

### Viewing logs

When a Native Deployment Check runs, you can view its real-time logs directly in the deployment detail view by selecting the **Logs** button next to the check. This streams output from the lint or typecheck command as it runs.

### Flag Definitions Present

The Flag Definitions Present check verifies that every feature flag your code declares with [Vercel Flags](/docs/flags/vercel-flags) has a definition in your project. This catches flags that were declared in code but never created in the dashboard before the deployment is promoted to production.

When a deployment is ready, Vercel reads the deployment's [flags discovery endpoint](/docs/flags/flags-sdk-reference) (`/.well-known/vercel/flags`) and checks each flag declared with the Vercel provider against the project's flag definitions.

The check passes when every declared Vercel flag has a definition in the project, including when the deployment declares no Vercel flags at all. Flags from other providers are ignored, as are flags whose SDK key belongs to a different project. If your project does not use Vercel Flags, the check also passes when the deployment has no `FLAGS_SECRET` or does not serve the discovery endpoint, because there is nothing to verify.

The check fails when:

- One or more declared flags have no definition in the project. The check output lists each missing flag with an action to create it.
- Your project uses Vercel Flags, but flags cannot be discovered. For example, when `FLAGS_SECRET` is missing or invalid, the discovery endpoint is missing or returns an error, or the response is invalid.

To resolve a failure, create the missing flag definitions or fix the discovery setup, then trigger a new deployment.

## GitHub Checks

When a project is connected to GitHub using [Vercel for GitHub](/docs/git/vercel-for-github), Vercel can read the statuses of your commits and selected GitHub Action results. Using these statuses, Vercel can prevent production deployments from [promoting to production](/docs/deployments/promoting-a-deployment) until your checks have passed.

### Adding GitHub Checks

- ### Ensure prerequisites are met
  1. Link your project to a GitHub repository using [Vercel for GitHub](/docs/git/vercel-for-github). You can verify this in your [project's Git settings](https://vercel.com/d?to=%2F%5Bteam%5D%2F%5Bproject%5D%2Fsettings%2Fgit).
  2. Visit [your project's production environment settings](https://vercel.com/d?to=%2F%5Bteam%5D%2F%5Bproject%5D%2Fsettings%2Fenvironments%2Fproduction) and ensure automatic aliasing for production is turned on.

- ### Select your Deployment Checks
  Visit [your project's Deployment Checks settings](https://vercel.com/d?to=%2F%5Bteam%5D%2F%5Bproject%5D%2Fsettings%2Fbuild-and-deployment%23deployment-checks) and select **Add Checks**. Choose **GitHub** as the provider, then search for and select the GitHub Actions checks you want to require.

- ### Update workflows (if necessary)
  If using GitHub Actions with a [`repository_dispatch`](https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#repository_dispatch) trigger, update your workflows to set a status for Vercel using the [`vercel/repository-dispatch/actions/status@v1`](https://github.com/marketplace/actions/deployment-status-update) action. This ensures the commit that triggered the deployment is the one used to determine if the Deployment Checks are met.
  ```yaml
  - name: 'Notify Vercel'
    uses: 'vercel/repository-dispatch/actions/status@v1'
    with:
      # The name of the check will be used to identify the check in the Deployment Checks settings and must be unique
      name: "Vercel - my-project: e2e-tests"
  ```
  If you are **not** using [`repository_dispatch`](https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#repository_dispatch), you can still use the [`vercel/repository-dispatch/actions/status@v1`](https://github.com/marketplace/actions/deployment-status-update), but it is not required and you can depend on the check directly.

- ### Create a new production deployment
  Deployment Checks appear as part of a production deployment's lifecycle. Production deployments will still be created, but will not be automatically assigned to your custom domains until all Deployment Checks are met.

- ### Run GitHub Actions to fulfill all Deployment Checks
  To meet Deployment Checks, run their corresponding GitHub Actions.

  If you're using [`repository_dispatch`](https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#repository_dispatch) to trigger a workflow in response to Vercel deployments, you must use the [`vercel.deployment.ready` event](/docs/git/vercel-for-github#repository-dispatch-events). This event triggers after the deployment is created, and before checks are run.

- ### Promote to production once all Deployment Checks are met
  Once all of the Deployment Checks have passed, the deployment is aliased to your production domain(s) automatically.

  For additional release protection, enable [Rolling Releases](/docs/rolling-releases) to ensure your deployment is fractionally released before promoting to everyone.

## Bypassing Deployment Checks

You can bypass Deployment Checks by selecting [Force Promote](/docs/deployments/promoting-a-deployment) from the deployment details page.

## Limitations

### Native Deployment Checks

- Script-based Native Deployment Checks only run if your project has a compatible script in `package.json`. If no matching script is found, the check is automatically skipped.
- The supported scripts are `lint` for lint checks, and `typecheck`, `type-check`, or `check-types` for typecheck.

### Flag Definitions Present

- Flag Definitions Present only verifies flags declared with the Vercel provider. Flags from other providers are not checked.
- When a project uses Vercel Flags, a failed flag discovery (such as a missing or invalid `FLAGS_SECRET`) fails the Flag Definitions Present check rather than skipping it.

### GitHub Checks

GitHub and GitHub Actions have edge cases with status reporting. These behaviors are matched in GitHub-backed Deployment Checks.

- To trigger a workflow in response to Vercel deployments using [`repository_dispatch`](https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#repository_dispatch), use the [`vercel/repository-dispatch/actions/status@v1`](https://github.com/marketplace/actions/deployment-status-update) action to set a status on the commit for Vercel Deployment Checks. This ensures the commit that triggered the deployment is the one used to determine if the Deployment Checks are met.
- GitHub uses the names of jobs to identify which checks are the same across instances. This means that:
  - Changing the name of a job requires updating your Deployment Checks to align with the names.
  - Each run of a GitHub Workflow should result in only one commit status. For example, when using [`repository_dispatch`](https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#repository_dispatch), ensure the commit status includes the environment name to avoid writing to the same status for each of the triggered workflow runs.
- Avoid using the same name for actions across multiple workflows. Due to GitHub's implementation of Check Runs, these will collide and introduce race conditions when used with GitHub branch protection rules, GitHub rulesets, and Vercel Deployment Checks.

## Search the docs from your terminal

Search the Vercel docs and read pages as Markdown with the Vercel CLI. No login required.

```bash
# Find docs pages by keyword
npx vercel@latest docs search "environment variables"
npx vercel@latest docs search "function timeout"

# Print a docs page as Markdown, by path or URL
npx vercel@latest docs inspect <page>
```

## Search guides from your terminal

Search the Knowledge Base and read guides as Markdown with the Vercel CLI. No login required.

```bash
# Find guides by keyword
npx vercel@latest kb search "rewrites and redirects"
npx vercel@latest kb search "AI SDK streaming"

# Show the latest guides
npx vercel@latest kb

# Print a guide as Markdown, by slug or URL
npx vercel@latest kb inspect <guide>
```

---

[View full sitemap](/docs/sitemap)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
