|
|
@@ -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
|