From bc8e9ac19f7da8bf434516099f8184d8394ca9d4 Mon Sep 17 00:00:00 2001 From: Matteo Ferrando Date: Mon, 25 Nov 2024 21:25:46 -0400 Subject: [PATCH] feat: introduce fal cdn v3 with storage API (#106) --- 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,