Try Docker 1811
This commit is contained in:
@@ -3,10 +3,12 @@
|
||||
import axios from 'axios';
|
||||
import type { Configuracion, Titular } from '../types';
|
||||
|
||||
const API_URL = 'http://localhost:5174/api';
|
||||
// La URL base viene de la variable de entorno
|
||||
const API_BASE_URL = import.meta.env.VITE_API_BASE_URL || '';
|
||||
|
||||
const apiClient = axios.create({
|
||||
baseURL: API_URL,
|
||||
// Construimos la URL completa para las llamadas a la API REST
|
||||
baseURL: `${API_BASE_URL}/api`,
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user