mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 05:08:32 +00:00
fix(cli): read OPENCODE_PASSWORD for explicit server auth
This commit is contained in:
parent
aad8d90dd1
commit
c6a52a39b5
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ export default Runtime.handler(Commands, (input) =>
|
|||
return yield* Effect.fail(new Error("--server and --standalone cannot be combined"))
|
||||
const transport = yield* Effect.gen(function* () {
|
||||
if (server !== undefined) {
|
||||
const password = process.env["OPENCODE_SERVER_PASSWORD"]
|
||||
const password = process.env["OPENCODE_PASSWORD"]
|
||||
return {
|
||||
url: server,
|
||||
headers: password ? { authorization: "Basic " + btoa("opencode:" + password) } : undefined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue