Compare commits
2 Commits
0fce7f1536
...
db6889c9db
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db6889c9db | ||
|
|
2cc3237370 |
@@ -1,10 +1,10 @@
|
||||
export const API_URL = process.env.REACT_APP_API_URL || "http://localhost:8080";
|
||||
export const API_URL = process.env.REACT_APP_API_URL || "http://localhost:8080";
|
||||
|
||||
export function getImageUrl(filename) {
|
||||
if (!filename) return null;
|
||||
if (filename.startsWith("http")) return filename;
|
||||
if (filename.startsWith("/")) return `${API_URL}${filename}`;
|
||||
return `${API_URL}/api/v1/files/${filename}`;
|
||||
if (filename.startsWith("/")) return `${API_URL}${filename}`;
|
||||
return `${API_URL}/api/v1/files/${filename}?presigned=true`;
|
||||
}
|
||||
|
||||
export const SUPPORT_EMAIL = process.env.REACT_APP_SUPPORT_EMAIL || "support@nakhodka.app";
|
||||
export const SUPPORT_EMAIL = process.env.REACT_APP_SUPPORT_EMAIL || "support@nakhodka.app";
|
||||
|
||||
Reference in New Issue
Block a user