Fix: Try Inject useApiData in useIsHoliday.

This commit is contained in:
2025-07-15 13:59:11 -03:00
parent 55457afcac
commit e3339fff99
2 changed files with 16 additions and 18 deletions

View File

@@ -13,7 +13,7 @@ export default defineConfig({
// Cualquier petición que empiece con /api...
'/api': {
// ...redirígela a nuestro backend de .NET
target: 'https://widgets.eldia.com', //'http://localhost:5045',
target: 'http://localhost:5045',
// Cambia el origen de la petición para que el backend la acepte
changeOrigin: true,
// No necesitamos reescribir la ruta, ya que el backend espera /api/...