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 (
|
const fetchPresignedUrlsBatch = async (
|
||||||
urls: string[],
|
urls: string[],
|
||||||
): Promise<Record<string, 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> }>(
|
const response = await axios.post<{ presignedUrls: Record<string, string> }>(
|
||||||
'/file/presign',
|
`${baseURLApi}/file/presign`,
|
||||||
{ urls },
|
{ urls },
|
||||||
|
{ baseURL: '' }, // Override baseURL to prevent duplication
|
||||||
);
|
);
|
||||||
|
|
||||||
// Cache the results
|
// Cache the results
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user