Uh oh!
There was an error while loading. Please reload this page.
fix(trigger): mark cpu-features external to fix deploy build - #5185
Conversation
ssh2 became reachable from the trigger background bundle via the Pi local SSH backend (#5178). esbuild then tried to bundle ssh2's optional native dep cpu-features and failed on the missing .node binary. ssh2 requires cpu-features inside a try/catch, so externalizing it is safe.
PR SummaryLow Risk Overview Adds Reviewed by Cursor Bugbot for commit e66afa6. Bugbot is set up for automated code reviews on this repo. Configure here. |
Summary
Could not resolve "../build/Release/cpufeatures.node"fromcpu-features/lib/index.js.ssh2became reachable from the trigger background bundle via the Pi local SSH backend (feat(pi): add pi coding agent harness #5178 wiredexecutor/handlers/pi/ssh-tools.ts→app/api/tools/ssh/utils→ssh2).ssh2was previously only used in API routes, which the trigger build never bundles.ssh2's optional native depcpu-featuresand choked on the missing compiled.nodebinary.cpu-featurestobuild.externalintrigger.config.ts.ssh2requires it inside atry/catchpurely as a crypto-acceleration optimization, so externalizing it has no runtime impact.Type of Change
Testing
trigger.dev deploy --dry-run --local-build→ "Successfully built code" (build failed on the same step without the change).Checklist