From 2cc3237370b04c0b55b552fc8d465e0bc0c22f60 Mon Sep 17 00:00:00 2001 From: SlimusMinus Date: Tue, 13 Oct 2026 00:44:49 +0300 Subject: [PATCH] fixed get image url --- src/config/authConstants.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/config/authConstants.js b/src/config/authConstants.js index 8f9e97a..5f5f559 100644 --- a/src/config/authConstants.js +++ b/src/config/authConstants.js @@ -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"; \ No newline at end of file +export const SUPPORT_EMAIL = process.env.REACT_APP_SUPPORT_EMAIL || "support@nakhodka.app";