Add deploy buttons and clean environment variables (#974)
* add render.yaml * Clean environment variables --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -11,5 +11,9 @@ export function getImageAbsoluteURIOrBase64(imageUrl?: string | null) {
|
||||
return imageUrl;
|
||||
}
|
||||
|
||||
return `${process.env.REACT_APP_FILES_URL}/${imageUrl}`;
|
||||
const serverFilesUrl =
|
||||
process.env.REACT_APP_SERVER_FILES_URL ??
|
||||
process.env.REACT_APP_SERVER_BASE_URL + '/files';
|
||||
|
||||
return `${serverFilesUrl}/${imageUrl}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user