fixed url
This commit is contained in:
parent
f72d7433fa
commit
42303afe69
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user