fix: force Node.js 22 for Vercel deployment
Summary
- Add
.nvmrcfile to force Vercel to use Node.js 22 instead of 24 - Fixes
isolated-vmcompilation failure due to C++20 requirement on Node.js 24
Problem
Vercel now defaults to Node.js 24.x, but the isolated-vm package fails to compile because:
- No prebuilt binaries exist for Node.js 24
- The C++ compiler on Vercel's build environment doesn't support C++20 (required by Node.js 24's V8 headers)
Error: #error "C++20 or later required."
Solution
Add .nvmrc with value 22 to ensure Vercel uses Node.js 22, which has prebuilt binaries for isolated-vm.
Test plan
- [ ] Verify Vercel deployment succeeds with Node.js 22
- [ ] Confirm
isolated-vminstalls without compilation
@adryserage is attempting to deploy a commit to the Typebot Team on Vercel.
A member of the Team first needs to authorize it.
[!IMPORTANT]
Review skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
✨ Finishing touches
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests
- [ ] Post copyable unit tests in a comment
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands and usage tips.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| builder-v2 | Preview | Comment | Nov 26, 2025 10:12am |
In theory, having
"engines": {
"node": "^22"
},
in package.json should be enough 🤔
Maybe it should be added to apps/builder/package.json as well