Variable d'environnement pour l'URL du serveur API
This commit is contained in:
@ -23,7 +23,7 @@ export default function Login() {
|
||||
if (loggingIn)
|
||||
return
|
||||
setLoggingIn(true)
|
||||
const resp = await fetch("http://192.168.1.198:3000/auth/login/", {
|
||||
const resp = await fetch(`${process.env.EXPO_PUBLIC_TRAINTRAPE_MOI_SERVER}/auth/login/`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ name: name, password: password })
|
||||
|
Reference in New Issue
Block a user