From 0c5abba89be5117730a9d46c57c2c6f0faa3e955 Mon Sep 17 00:00:00 2001 From: IO420 <320154041@pcpuma.acatlan.unam.mx> Date: Wed, 10 Sep 2025 19:23:18 -0400 Subject: [PATCH] modified .env and styles --- .example | 2 +- app/Components/Login/Login.tsx | 7 ++++--- app/globals.css | 29 +++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/.example b/.example index 23a1471..515bb00 100644 --- a/.example +++ b/.example @@ -1,2 +1,2 @@ -REACT_APP_API_URL= +NEXT_PUBLIC_API_URL= PORT= \ No newline at end of file diff --git a/app/Components/Login/Login.tsx b/app/Components/Login/Login.tsx index b6064cd..f825448 100644 --- a/app/Components/Login/Login.tsx +++ b/app/Components/Login/Login.tsx @@ -12,7 +12,7 @@ function Login() { e.preventDefault(); try { - const response = await axios.post("http://localhost:5000/user", { + const response = await axios.post(`${process.env.NEXT_PUBLIC_API_URL}/user`, { usuario: user, password: password, }); @@ -64,8 +64,8 @@ function Login() { type='submit' >Iniciar sesión - - {message && + + {message &&