.agents/skills/turborepo/references/ci/vercel.md
Turborepo integrates seamlessly with Vercel for monorepo deployments.
Remote caching is automatically enabled when deploying to Vercel. No configuration needed - Vercel detects Turborepo and enables caching.
This means:
TURBO_TOKEN or TURBO_TEAM setup required on VercelSkip unnecessary builds when a package hasn't changed using turbo-ignore.
npx turbo-ignore
Or install globally in your project:
pnpm add -D turbo-ignore
npx turbo-ignore
turbo-ignore checks if the current package (or its dependencies) changed since the last successful deployment:
# Check specific package
npx turbo-ignore web
# Use specific comparison ref
npx turbo-ignore --fallback=HEAD~1
# Verbose output
npx turbo-ignore --verbose
Set environment variables in Vercel Dashboard:
Common variables:
DATABASE_URLAPI_KEYFor monorepos, set the root directory in Vercel:
apps/web)Vercel automatically:
Vercel auto-detects turbo run build when turbo.json exists at root.
Override if needed:
turbo run build --filter=web
Or for production-only optimizations:
turbo run build --filter=web --env-mode=strict