diff --git a/frontend/src/lib/assetUrl.ts b/frontend/src/lib/assetUrl.ts index 9b1821b..2f70c79 100644 --- a/frontend/src/lib/assetUrl.ts +++ b/frontend/src/lib/assetUrl.ts @@ -81,10 +81,11 @@ const BATCH_DELAY_MS = 10; // Small delay to batch concurrent requests const fetchPresignedUrlsBatch = async ( urls: string[], ): Promise> => { - // Use relative path since axios.defaults.baseURL is already set + // Use explicit baseURLApi to avoid double /api/ prefix issues const response = await axios.post<{ presignedUrls: Record }>( - '/file/presign', + `${baseURLApi}/file/presign`, { urls }, + { baseURL: '' }, // Override baseURL to prevent duplication ); // Cache the results