Update API base URL to use REACT_APP_BACKEND_URL and include '/api' path
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
|
||||
const api = axios.create({
|
||||
baseURL: process.env.BACKEND_URL || 'http://localhost:3101',
|
||||
baseURL: process.env.REACT_APP_BACKEND_URL || 'http://localhost:3101/api',
|
||||
});
|
||||
|
||||
export default api;
|
||||
Reference in New Issue
Block a user