**Problem:** Vercel deployments were failing during `pnpm install` because the `prepare` script tried to run `lefthook install`, which requires a git repository. Vercel's build environment doesn't have a proper `.git` directory, causing: ``` fatal: not a git repository (or any parent up to mount point /vercel) Error: exit status 128 ``` **Solution:** Skip Lefthook installation when running in CI or Vercel environments by checking `process.env.CI` and `process.env.VERCEL` before attempting to install git hooks. **Impact:** - Vercel deployments will now succeed - Local development still gets git hooks installed - GitHub Actions CI will skip hook installation (not needed in CI) - All previous tool execution fixes can now actually deploy 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 line
8 B
Text
1 line
8 B
Text
.vercel
|