This commit is contained in:
jackiettran committed 2025-12-11 20:05:18 -05:00
1 parent 11593606aa
commit b0268a2fb7
28 files changed
+2578 -432

No files matched your search

-13
View File
@@ -1,13 +0,0 @@
export const getImageUrl = (imagePath: string): string => {
// Get the base URL without /api
const apiUrl = process.env.REACT_APP_API_URL || '';
const baseUrl = apiUrl.replace('/api', '');
// If imagePath already includes the full path, use it
if (imagePath.startsWith('/uploads/')) {
return `${baseUrl}${imagePath}`;
}
// Otherwise, construct the full path
return `${baseUrl}/uploads/profiles/${imagePath}`;
};