fix([2fd88f42]): implement vite proxy for robust API calls and add logging
This commit is contained in:
@@ -39,7 +39,7 @@ const FileUpload: React.FC<FileUploadProps> = ({ onUploadSuccess, setIsLoading,
|
||||
setError(null);
|
||||
|
||||
try {
|
||||
const response = await axios.post('http://backend:8000/api/upload', formData, {
|
||||
const response = await axios.post('/api/upload', formData, {
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user