Fix background image path in useRefFiles hook to use AWS S3 URL instead of local file path

This commit is contained in:
yoosangwook 2025-05-29 16:48:09 +09:00
parent 1a8dfa628b
commit 4de742d1a3

View File

@ -271,8 +271,8 @@ export function useRefFiles() {
})
console.log('🚀 ~ handleUploadConvertRefFile ~ result:', result)
// setCurrentBgImage(`${process.env.NEXT_PUBLIC_AWS_S3_BASE_URL}/${result.fileName}`)
setCurrentBgImage(result.filePath)
setCurrentBgImage(`${process.env.NEXT_PUBLIC_AWS_S3_BASE_URL}/${result.fileName}`)
// setCurrentBgImage(result.filePath)
setRefImage(file)
const params = {