Fix google auth url broken (#2380)
* Fix google auth url broken * Refactor
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { REACT_APP_SERVER_BASE_URL } from '~/config';
|
||||
import { REACT_APP_SERVER_FILES_URL } from '~/config';
|
||||
|
||||
export const getImageAbsoluteURIOrBase64 = (imageUrl?: string | null) => {
|
||||
if (!imageUrl) {
|
||||
@ -13,8 +13,7 @@ export const getImageAbsoluteURIOrBase64 = (imageUrl?: string | null) => {
|
||||
return imageUrl;
|
||||
}
|
||||
|
||||
const serverFilesUrl =
|
||||
REACT_APP_SERVER_BASE_URL ?? REACT_APP_SERVER_BASE_URL + '/files';
|
||||
const serverFilesUrl = REACT_APP_SERVER_FILES_URL;
|
||||
|
||||
return `${serverFilesUrl}/${imageUrl}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user