Skip to content

Commit af7a2a4

Browse files
Apply PR #20616: fix(node): set OPENCODE_CHANNEL during build
2 parents b54a225 + 3df4bb6 commit af7a2a4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/opencode/script/build-node.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bun
22

33
import { $ } from "bun"
4+
import { Script } from "@opencode-ai/script"
45
import fs from "fs"
56
import path from "path"
67
import { fileURLToPath } from "url"
@@ -63,6 +64,7 @@ await Bun.build({
6364
external: ["jsonc-parser"],
6465
define: {
6566
OPENCODE_MIGRATIONS: JSON.stringify(migrations),
67+
OPENCODE_CHANNEL: `'${Script.channel}'`,
6668
},
6769
files: {
6870
"opencode-web-ui.gen.ts": "",

0 commit comments

Comments
 (0)