🐛 fix(1fichier): disable CDN downloads to preserve CDN credits
Pass cdn: 0 to 1Fichier get_token API to force direct server downloads instead of CDN, avoiding unnecessary CDN credit usage. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3965d3e494
commit
5873ffa60d
@ -1274,7 +1274,7 @@ class OneFichierClient {
|
|||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
Authorization: `Bearer ${this.apiKey}`
|
Authorization: `Bearer ${this.apiKey}`
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ url: link, pretty: 1 }),
|
body: JSON.stringify({ url: link, pretty: 1, cdn: 0 }),
|
||||||
signal: withTimeoutSignal(signal, API_TIMEOUT_MS)
|
signal: withTimeoutSignal(signal, API_TIMEOUT_MS)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user