From e26673b78a31500dc1b5252c75c39177750fa448 Mon Sep 17 00:00:00 2001 From: yoosangwook Date: Wed, 14 May 2025 11:03:43 +0900 Subject: [PATCH] fix: update background image URL in useRefFiles hook to utilize AWS S3 base URL --- src/hooks/common/useRefFiles.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/common/useRefFiles.js b/src/hooks/common/useRefFiles.js index 94f7a8df..7d2cc0fa 100644 --- a/src/hooks/common/useRefFiles.js +++ b/src/hooks/common/useRefFiles.js @@ -151,7 +151,8 @@ export function useRefFiles() { }) console.log('🚀 ~ handleMapImageDown ~ res:', res) // setCurrentBgImage(`${process.env.NEXT_PUBLIC_HOST_URL}${res.filePath}`) - setCurrentBgImage(`${res.filePath}`) + // setCurrentBgImage(`${res.filePath}`) + setCurrentBgImage(`${process.env.NEXT_PUBLIC_AWS_S3_BASE_URL}/${res.fileName}`) await setBackGroundImage({ objectId: currentCanvasPlan.id,