Enable system CA certificate trust for corporate networks

Set NODE_USE_SYSTEM_CA=1 when spawning the opencode server process.
This allows Bun to use the macOS system keychain for TLS validation,
fixing SSL errors for users on corporate VPNs with custom CAs.
This commit is contained in:
Mendi Halpern
2026-01-27 11:31:40 +02:00
committed by Mateusz Tymek
parent 9e1ee712d2
commit b5c5237915

View File

@@ -83,7 +83,7 @@ export class ProcessManager {
], ],
{ {
cwd: this.projectDirectory, cwd: this.projectDirectory,
env: { ...process.env }, env: { ...process.env, NODE_USE_SYSTEM_CA: "1" },
stdio: ["ignore", "pipe", "pipe"], stdio: ["ignore", "pipe", "pipe"],
detached: false, detached: false,
} }