From f3c60b94bea62992571aff710f2f7ee8c0cdb47b Mon Sep 17 00:00:00 2001 From: halil Date: Thu, 12 Dec 2024 23:07:33 +0300 Subject: [PATCH] fix: add logs --- docker-compose.yaml | 3 --- frontend/src/service/apiClient.js | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index cd7c15c9..f8e62962 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -20,7 +20,6 @@ services: test: ['CMD', 'mysql-db', '-h', '$MYSQL_HOST', '-u', '$MYSQL_USER', '-p$MYSQL_PASSWORD', '-e', 'SELECT 1'] timeout: 20s retries: 10 - backend: build: context: ./backend @@ -70,7 +69,6 @@ services: - backend networks: - backend_network - mailhog: image: mailhog/mailhog ports: @@ -82,7 +80,6 @@ services: networks: backend_network: driver: bridge - volumes: my-db: backend: \ No newline at end of file diff --git a/frontend/src/service/apiClient.js b/frontend/src/service/apiClient.js index 696c9223..5b844cd7 100644 --- a/frontend/src/service/apiClient.js +++ b/frontend/src/service/apiClient.js @@ -5,6 +5,10 @@ const apiClient = axios.create({ timeout: 10000, }); +console.log(process.env) +console.log(process.env.REACT_APP_API_BASE_URL); +console.log(apiClient); + apiClient.interceptors.request.use((config) => { const token = localStorage.getItem("accessToken"); if (token) config.headers.Authorization = `Bearer ${token}`;