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 &&