fix(api-url): todas las apps usan || en vez de ?? para VITE_API_URL
- 11 archivos corregidos: agente-ia, alta-clientes, cobranza, cotizador, dashboards, mi-dia, landing (auth.ts, api.ts, mi-dia.ts, reportes.ts, push.ts, notas.ts, recordatorios.ts, reporte-mi-tablero.ts) - ?? solo cubre null/undefined, || cubre string vacío - 7 apps reconstruidas
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import { conAuth, manejar401 } from './auth'
|
||||
import type { ResumenMiDia } from '../lib/mi-tablero'
|
||||
|
||||
const API_URL = import.meta.env.VITE_API_URL ?? '/api'
|
||||
const API_URL = import.meta.env.VITE_API_URL || '/api'
|
||||
|
||||
/** GET /mi-dia/resumen; lanza Error con mensaje legible si el API falla */
|
||||
export async function fetchResumenMiDia(): Promise<ResumenMiDia> {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { conAuth, manejar401 } from './auth'
|
||||
import type { ResumenReportes } from '../lib/reportes'
|
||||
|
||||
const API_URL = import.meta.env.VITE_API_URL ?? '/api'
|
||||
const API_URL = import.meta.env.VITE_API_URL || '/api'
|
||||
|
||||
/** GET /reportes/resumen; lanza Error con mensaje legible si el API falla */
|
||||
export async function fetchResumen(): Promise<ResumenReportes> {
|
||||
|
||||
Reference in New Issue
Block a user