Try Docker 1811

This commit is contained in:
2025-10-29 18:11:25 -03:00
parent e354433cd6
commit 06d95d32ca
12 changed files with 175 additions and 6 deletions

View File

@@ -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' },
});