fix(cli): use hosted updater API (#38223)
Co-authored-by: Dax Raad <d@ironbay.co>
This commit is contained in:
parent
c8a40450e5
commit
80dc21d8f7
1 changed files with 1 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ export const layer = Layer.effect(
|
|||
const response = yield* Effect.tryPromise({
|
||||
try: () =>
|
||||
fetch(
|
||||
`https://registry.npmjs.org/${encodeURIComponent(packageName)}/${encodeURIComponent(OPENCODE_CHANNEL)}`,
|
||||
`https://update.opencode.ai/api/${encodeURIComponent(channel)}/cli/npm`,
|
||||
{ headers: { "User-Agent": `opencode/${OPENCODE_VERSION}` }, signal: AbortSignal.timeout(10_000) },
|
||||
),
|
||||
catch: (cause) => new Error("Failed to check for updates", { cause }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue