fix: update background image URL in useRefFiles hook to utilize AWS S3 base URL

This commit is contained in:
yoosangwook 2025-05-14 11:03:43 +09:00
parent ad12f9b817
commit e26673b78a

View File

@ -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,