From 30ac9cf0abf8328ffba45b39af9e108c50c76bc6 Mon Sep 17 00:00:00 2001 From: carlospelazas Date: Sat, 27 Apr 2024 18:37:40 +0200 Subject: [PATCH] fix endpoint for profile --- webapp/src/pages/userProfile/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/pages/userProfile/index.tsx b/webapp/src/pages/userProfile/index.tsx index 4b233ff5..a22c8efc 100644 --- a/webapp/src/pages/userProfile/index.tsx +++ b/webapp/src/pages/userProfile/index.tsx @@ -6,7 +6,7 @@ import axios from 'axios'; const ProfilePage = () => { const { t } = useTranslation(); - const apiEndpoint = 'http://localhost:8000'; + const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000'; const uuid = localStorage.getItem('uuid'); const [profileInfo, setProfileInfo] = useState(null);