Skip to content

Commit

Permalink
fix: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Halil-Ibrahim-Kasapoglu committed Dec 12, 2024
1 parent 2caa5e0 commit f3c60b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -70,7 +69,6 @@ services:
- backend
networks:
- backend_network

mailhog:
image: mailhog/mailhog
ports:
Expand All @@ -82,7 +80,6 @@ services:
networks:
backend_network:
driver: bridge

volumes:
my-db:
backend:
4 changes: 4 additions & 0 deletions frontend/src/service/apiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit f3c60b9

Please sign in to comment.