fix(trigger): mark cpu-features external to fix deploy build (#5185)

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.
This commit is contained in:
Theodore Li
2026-06-23 11:49:25 -07:00
committed by GitHub
parent 77976bcb8b
commit 406ae92b84
+1 -1
View File
@@ -56,7 +56,7 @@ export default defineConfig({
dirs: ['./background'],
...(grafanaTelemetry ? { telemetry: grafanaTelemetry } : {}),
build: {
external: ['isolated-vm', '@earendil-works/pi-coding-agent'],
external: ['isolated-vm', '@earendil-works/pi-coding-agent', 'cpu-features'],
extensions: [
additionalFiles({
files: [