feat: introduce fal cdn v3 with storage API (#106)

This commit is contained in:
Matteo Ferrando 2024-11-25 21:25:46 -04:00 committed by GitHub
parent 840a305dfa
commit bc8e9ac19f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,8 @@ async function initiateUpload(
file.name || `${Date.now()}.${getExtensionFromContentType(contentType)}`;
return await dispatchRequest<InitiateUploadData, InitiateUploadResult>({
method: "POST",
targetUrl: `${getRestApiUrl()}/storage/upload/initiate`,
// NOTE: We want to test V3 without making it the default at the API level
targetUrl: `${getRestApiUrl()}/storage/upload/initiate?storage_type=fal-cdn-v3`,
input: {
content_type: contentType,
file_name: filename,