Skip to content

Vercel

Learn how to use Turborepo on 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.

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"
}