Skip to content

Commit

Permalink
feat: introduce fal cdn v3 with storage API (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 authored Nov 26, 2024
1 parent 840a305 commit bc8e9ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/client/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bc8e9ac

Please sign in to comment.