Skip to content

Vercel

Vercel's zero-config integration with Turborepo automatically understands your monorepo.

To deploy your Turborepo on Vercel, create a new project and import your code. Your projects will be pre-configured with the correct settings to use the Vercel Remote Cache.

For more information about deploying your Turborepo to Vercel, visit the Vercel documentation.

Vercel CI

Vercel CI runs your Turborepo tasks, such as tests, linting, and type checks, when you push code. It uses your Task Graph to run tasks in dependency order, skips unaffected tasks, and reuses cached results with zero-config Vercel Remote Cache. Each task runs in its own isolated compute instance.

To get started, follow the Vercel CI setup instructions to enable CI for your repository and select which tasks to run. For more details, see the configuration reference for task dependencies and resource sizing, and the environment variables guide for secrets and other values your tasks need.

Filtered installs

You can speed up installs by only installing the dependencies for the application being deployed and its Workspace dependencies. Set a custom Install Command in the application's vercel.json or in your project's Build and Deployment settings:

apps/web/vercel.json
{
  "installCommand": "pnpm install --filter web..."
}

Requires pnpm 9.5 or newer. On pnpm 8.x through 9.4, --filter installed dependencies for the entire workspace (pnpm#6300).

apps/web/vercel.json
{
  "installCommand": "yarn workspaces focus web"
}
apps/web/vercel.json
{
  "installCommand": "npm install --workspace=web"
}
apps/web/vercel.json
{
  "installCommand": "bun install --filter web"
}
apps/web/vercel.json
{
  "installCommand": "nub install --filter web"
}
apps/web/vercel.json
{
  "installCommand": "aube install --filter web"
}