mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
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:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user