diff --git a/apps/alta-clientes/src/services/auth.ts b/apps/alta-clientes/src/services/auth.ts index 70cd037..9460a3b 100644 --- a/apps/alta-clientes/src/services/auth.ts +++ b/apps/alta-clientes/src/services/auth.ts @@ -1,5 +1,5 @@ // Sesión de autenticación contra el API Gateway (JWT guardado en localStorage) -const API_URL = import.meta.env.VITE_API_URL ?? 'http://192.168.10.123:3000/api' +const API_URL = import.meta.env.VITE_API_URL ?? '/api' const STORAGE_KEY = 'frasa_auth' export interface UsuarioSesion { diff --git a/apps/cobranza/src/services/auth.ts b/apps/cobranza/src/services/auth.ts index 70cd037..9460a3b 100644 --- a/apps/cobranza/src/services/auth.ts +++ b/apps/cobranza/src/services/auth.ts @@ -1,5 +1,5 @@ // Sesión de autenticación contra el API Gateway (JWT guardado en localStorage) -const API_URL = import.meta.env.VITE_API_URL ?? 'http://192.168.10.123:3000/api' +const API_URL = import.meta.env.VITE_API_URL ?? '/api' const STORAGE_KEY = 'frasa_auth' export interface UsuarioSesion { diff --git a/apps/cotizador/src/services/auth.ts b/apps/cotizador/src/services/auth.ts index dc51b66..f20bd69 100644 --- a/apps/cotizador/src/services/auth.ts +++ b/apps/cotizador/src/services/auth.ts @@ -1,5 +1,5 @@ // Sesión de autenticación contra el API Gateway (JWT guardado en localStorage) -const API_URL = import.meta.env.VITE_API_URL ?? 'http://192.168.10.123:3000/api' +const API_URL = import.meta.env.VITE_API_URL ?? '/api' const STORAGE_KEY = 'frasa_auth' export interface UsuarioSesion { diff --git a/apps/dashboards/src/services/auth.ts b/apps/dashboards/src/services/auth.ts index 970dd94..e9d5103 100644 --- a/apps/dashboards/src/services/auth.ts +++ b/apps/dashboards/src/services/auth.ts @@ -1,5 +1,5 @@ // Sesión de autenticación contra el API Gateway (JWT guardado en localStorage) -const API_URL = import.meta.env.VITE_API_URL ?? 'http://192.168.10.123:3000/api' +const API_URL = import.meta.env.VITE_API_URL ?? '/api' const STORAGE_KEY = 'frasa_auth' export interface UsuarioSesion { diff --git a/apps/mi-dia/src/services/auth.ts b/apps/mi-dia/src/services/auth.ts index dc51b66..f20bd69 100644 --- a/apps/mi-dia/src/services/auth.ts +++ b/apps/mi-dia/src/services/auth.ts @@ -1,5 +1,5 @@ // Sesión de autenticación contra el API Gateway (JWT guardado en localStorage) -const API_URL = import.meta.env.VITE_API_URL ?? 'http://192.168.10.123:3000/api' +const API_URL = import.meta.env.VITE_API_URL ?? '/api' const STORAGE_KEY = 'frasa_auth' export interface UsuarioSesion {