mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-29 21:19:48 +00:00
docs: use latest release for downloads instead of pinned version
This commit is contained in:
parent
df9eafa92c
commit
c48a4cc05b
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ export async function GET({ params: { platform, channel } }: APIEvent) {
|
|||
if (!assetName) return new Response(null, { status: 404 })
|
||||
|
||||
const resp = await fetch(
|
||||
`https://github.com/anomalyco/${channel === "stable" ? "opencode" : "opencode-beta"}/releases/download/v1.4.3/${assetName}`,
|
||||
`https://github.com/anomalyco/${channel === "stable" ? "opencode" : "opencode-beta"}/releases/latest/download/${assetName}`,
|
||||
{
|
||||
cf: {
|
||||
// in case gh releases has rate limits
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue