Comp AI CRM is an open source, CRM designed for AI agents. Agentic-first CRM.
TypeScript
Make the monorepo build deployable on Vercel
Lewis Carhartcdad745f2008
diff --git a/.gitignore b/.gitignoreindex 8e4168a1..7a5365ca 100644--- a/.gitignore+++ b/.gitignore@@ -39,3 +39,4 @@ yarn-error.log*# Agent worktrees.claude/worktrees/+.env*diff --git a/apps/api/turbo.json b/apps/api/turbo.jsonindex fcd8d77b..e68e9122 100644--- a/apps/api/turbo.json+++ b/apps/api/turbo.json@@ -2,9 +2,10 @@"$schema": "https://turborepo.dev/schema.json","extends": ["//"],"tasks": {+ "//": "`build` deliberately does not depend on `trpc:generate`. The generator ships a native binary that needs GLIBC 2.39, which Vercel's build image does not have, so running it there fails the deploy. `src/generated/server.ts` is committed for exactly this reason (see .gitignore) and is what a build consumes. Drift is caught by `check-types`, which still regenerates first, and by `bun run dev`, which keeps the generator in watch mode.","build": {- "dependsOn": ["$TURBO_EXTENDS$", "trpc:generate"],- "outputs": ["dist/**", "src/generated/**"]+ "dependsOn": ["$TURBO_EXTENDS$"],+ "outputs": ["dist/**"]},"check-types": {"dependsOn": ["$TURBO_EXTENDS$", "trpc:generate"]diff --git a/packages/db/package.json b/packages/db/package.jsonindex abde779d..e2c689b1 100644--- a/packages/db/package.json+++ b/packages/db/package.json@@ -20,6 +20,7 @@"db:studio": "prisma studio","dev": "prisma generate --watch","lint": "biome check .",+ "postinstall": "prisma generate","clean": "rm -rf .turbo node_modules src/generated"},"dependencies": {