Просмотр исходного кода

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

Brendan Allan 3 месяцев назад
Родитель
Сommit
f6a3615f59
1 измененных файлов с 0 добавлено и 7 удалено
  1. 0 7
      packages/console/app/src/routes/download/[channel]/[platform].ts

+ 0 - 7
packages/console/app/src/routes/download/[channel]/[platform].ts

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