fix(console): remove Cloudflare cache config from download fetch (#25804)

This commit is contained in:
Brendan Allan
2026-05-05 10:15:00 +08:00
committed by GitHub
parent edd480f56b
commit f6a3615f59

View File

@@ -32,13 +32,6 @@ export async function GET({ params: { platform, channel } }: APIEvent) {
const resp = await fetch(
`https://github.com/anomalyco/${channel === "stable" ? "opencode" : "opencode-beta"}/releases/latest/download/${assetName}`,
{
cf: {
// in case gh releases has rate limits
cacheTtl: 60 * 5,
cacheEverything: true,
},
} as any,
)
const downloadName = downloadNames[platform]