Update API base URL to use REACT_APP_BACKEND_URL and include '/api' path

This commit is contained in:
2025-06-11 22:00:13 -03:00
parent 2f6eb4f6c1
commit 3de6609dc0
10 changed files with 546 additions and 706 deletions

View File

@@ -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;