diff --git a/docker-compose.yml b/docker-compose.yml index 58fe0e2..60cd24b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,7 @@ services: - 3000:3000 environment: CHOKIDAR_USEPOLLING: "true" + REACT_APP_API_URL: "/api" command: ["npm", "run", "start"] server: diff --git a/frontend/.env b/frontend/.env index 4452883..b1ebafc 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1 +1,2 @@ -REACT_APP_API_URL= \ No newline at end of file +# overwritten in docker-compose +REACT_APP_API_URL=http://localhost:8000 \ No newline at end of file diff --git a/frontend/src/layout/AppFooter/index.tsx b/frontend/src/layout/AppFooter/index.tsx index 30acac7..58f00cd 100644 --- a/frontend/src/layout/AppFooter/index.tsx +++ b/frontend/src/layout/AppFooter/index.tsx @@ -3,13 +3,13 @@ import { useUserContext } from '../../contexts/UserContext' import './style.scss' export const AppFooter = () => { - const { user, selectedAccount } = useUserContext() + const { user } = useUserContext() return ( )