From 6c7c477d6a99245bc22b1c01d81c5b66a60bffb3 Mon Sep 17 00:00:00 2001 From: IO <320154041@pcpuma.acatlan.unam.mx> Date: Mon, 23 Feb 2026 14:43:21 -0600 Subject: [PATCH] delete hardcode --- app/(private)/Impresiones/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/(private)/Impresiones/page.tsx b/app/(private)/Impresiones/page.tsx index 637c177..221e05b 100644 --- a/app/(private)/Impresiones/page.tsx +++ b/app/(private)/Impresiones/page.tsx @@ -11,6 +11,7 @@ import { GetStudentWhitoutSancion } from "@/app/lib/getStudentWhitoutSancion"; import axios from "axios"; import "@/app/globals.css"; +import { envConfig } from "@/app/lib/config"; export default async function Page(props: { searchParams?: Promise<{ @@ -41,7 +42,7 @@ export default async function Page(props: { } try { - const response = await axios.get("http://localhost:5000/costo"); + const response = await axios.get(`${envConfig.apiUrl}/costo`); costos = response.data; } catch (error) { console.error("Error obteniendo costos:", error);