fix(fronts): API_URL usa '/api' relativo en vez de IP hardcodeada
Las apps (cotizador, mi-dia, alta-clientes, cobranza, dashboards) tenían VITE_API_URL default a http://192.168.10.123:3000/api que no funciona desde dominio externo (Cloudflare). Cambiado a '/api' relativo como ya lo usaba landing. Ahora funciona desde IP y desde dominio.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// Sesión de autenticación contra el API Gateway (JWT guardado en localStorage)
|
// 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'
|
const STORAGE_KEY = 'frasa_auth'
|
||||||
|
|
||||||
export interface UsuarioSesion {
|
export interface UsuarioSesion {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// Sesión de autenticación contra el API Gateway (JWT guardado en localStorage)
|
// 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'
|
const STORAGE_KEY = 'frasa_auth'
|
||||||
|
|
||||||
export interface UsuarioSesion {
|
export interface UsuarioSesion {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// Sesión de autenticación contra el API Gateway (JWT guardado en localStorage)
|
// 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'
|
const STORAGE_KEY = 'frasa_auth'
|
||||||
|
|
||||||
export interface UsuarioSesion {
|
export interface UsuarioSesion {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// Sesión de autenticación contra el API Gateway (JWT guardado en localStorage)
|
// 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'
|
const STORAGE_KEY = 'frasa_auth'
|
||||||
|
|
||||||
export interface UsuarioSesion {
|
export interface UsuarioSesion {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// Sesión de autenticación contra el API Gateway (JWT guardado en localStorage)
|
// 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'
|
const STORAGE_KEY = 'frasa_auth'
|
||||||
|
|
||||||
export interface UsuarioSesion {
|
export interface UsuarioSesion {
|
||||||
|
|||||||
Reference in New Issue
Block a user