fixed url

This commit is contained in:
Dmitri 2026-03-25 20:11:27 +04:00
parent f72d7433fa
commit 42303afe69

View File

@ -81,10 +81,11 @@ const BATCH_DELAY_MS = 10; // Small delay to batch concurrent requests
const fetchPresignedUrlsBatch = async (
urls: string[],
): Promise<Record<string, string>> => {
// 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<string, string> }>(
'/file/presign',
`${baseURLApi}/file/presign`,
{ urls },
{ baseURL: '' }, // Override baseURL to prevent duplication
);
// Cache the results