From a069b532e20985edc459669bb9446f6bbdb5094b Mon Sep 17 00:00:00 2001 From: Matteo Ferrando Date: Thu, 21 Nov 2024 12:17:42 -0400 Subject: [PATCH] feat: introduce fal cdn v3 with storage API --- libs/client/src/storage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/client/src/storage.ts b/libs/client/src/storage.ts index adb1981..ebb4186 100644 --- a/libs/client/src/storage.ts +++ b/libs/client/src/storage.ts @@ -66,7 +66,8 @@ async function initiateUpload( file.name || `${Date.now()}.${getExtensionFromContentType(contentType)}`; return await dispatchRequest({ 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,