test: image file upload prod mode error
This commit is contained in:
parent
26bd4ac9e0
commit
e1a47a6a11
@ -149,7 +149,8 @@ export function useRefFiles() {
|
||||
formData.append('file', file)
|
||||
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)
|
||||
const image = await readImage(res.fileNm)
|
||||
console.log('🚀 ~ handleUploadImageRefFile ~ file:', image)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user