core: make server runtime-agnostic by migrating from Bun to Node.js HTTP/WebSocket APIs

This enables running the opencode server on standard Node.js runtimes without requiring Bun-specific APIs. Users can now deploy the server in more environments including standard Node.js containers and cloud platforms that don't support Bun.
This commit is contained in:
Dax Raad
2026-03-09 16:36:39 -04:00
parent 39ef7fc90e
commit 6c80e2662c
10 changed files with 116 additions and 182 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/usr/bin/env bun
Bun.build({
entrypoints: ["./src/node.ts"],
target: "node",
outdir: "./dist",
format: "esm",
})