core: pin downloads to v1.4.3 to ensure users get a tested, stable build instead of potentially unstable latest releases

This commit is contained in:
Dax Raad
2026-04-14 22:35:03 -04:00
parent d215188e4c
commit ddad871b46

View File

@@ -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/latest/download/${assetName}`,
`https://github.com/anomalyco/${channel === "stable" ? "opencode" : "opencode-beta"}/releases/download/v1.4.3/${assetName}`,
{
cf: {
// in case gh releases has rate limits