From 0389cd8f510f8902c11a88cbe91108ef0b36d202 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sun, 9 Apr 2023 18:46:04 +0100 Subject: [PATCH] Email login form --- src/components/AuthenticationFlow/EmailLoginForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AuthenticationFlow/EmailLoginForm.tsx b/src/components/AuthenticationFlow/EmailLoginForm.tsx index 9f4a7e133..c2c9f1525 100644 --- a/src/components/AuthenticationFlow/EmailLoginForm.tsx +++ b/src/components/AuthenticationFlow/EmailLoginForm.tsx @@ -16,7 +16,7 @@ const EmailLoginForm: FunctionComponent<{}> = () => { setIsLoading(true); setError(''); - const res = await fetch('http://localhost:8080/v1-login', { + const res = await fetch(`${import.meta.env.PUBLIC_API_URL}/v1-login`, { method: 'POST', headers: { 'Content-Type': 'application/json',