Delete auth/file front variables (#4455)

This commit is contained in:
Félix Malfait
2024-03-19 22:19:40 +01:00
committed by GitHub
parent 4bfb90657f
commit b6e8bb1a6c
9 changed files with 10 additions and 36 deletions

View File

@ -1,4 +1,4 @@
import { REACT_APP_SERVER_FILES_URL } from '~/config';
import { REACT_APP_SERVER_BASE_URL } from '~/config';
export const getImageAbsoluteURIOrBase64 = (imageUrl?: string | null) => {
if (!imageUrl) {
@ -13,7 +13,7 @@ export const getImageAbsoluteURIOrBase64 = (imageUrl?: string | null) => {
return imageUrl;
}
const serverFilesUrl = REACT_APP_SERVER_FILES_URL;
const serverFilesUrl = REACT_APP_SERVER_BASE_URL;
return `${serverFilesUrl}/${imageUrl}`;
return `${serverFilesUrl}/files/${imageUrl}`;
};