test: image file upload prod mode error

This commit is contained in:
yoosangwook 2025-01-10 19:00:30 +09:00
parent 26bd4ac9e0
commit e1a47a6a11

View File

@ -149,7 +149,8 @@ export function useRefFiles() {
formData.append('file', file) formData.append('file', file)
formData.append('fileName', currentCanvasPlan.id) formData.append('fileName', currentCanvasPlan.id)
const res = await post({ url: 'http://localhost:3000/api/image-upload', data: formData }) // const res = await post({ url: `${process.env.NEXT_PUBLIC_API_SERVER_PATH}/api/image-upload`, data: formData })
const res = await post({ url: `http://localhost:3000/api/image-upload`, data: formData })
console.log('🚀 ~ handleUploadImageRefFile ~ res:', res) console.log('🚀 ~ handleUploadImageRefFile ~ res:', res)
const image = await readImage(res.fileNm) const image = await readImage(res.fileNm)
console.log('🚀 ~ handleUploadImageRefFile ~ file:', image) console.log('🚀 ~ handleUploadImageRefFile ~ file:', image)