Skip to content

Commit

Permalink
add REACT_APP_
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzaizai2k committed Oct 3, 2024
1 parent 79a9a73 commit 3dec932
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ services:
depends_on:
- fastapi-app
environment:
- SERVER_IP=${SERVER_IP}
env_file:
- ./.env
- REACT_APP_SERVER_IP=${SERVER_IP}



Expand Down
2 changes: 1 addition & 1 deletion jwt-auth-frontend/src/services/api.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from "axios";

export const API_URL = `http://${process.env.SERVER_IP}/api`;
export const API_URL = `http://${process.env.REACT_APP_SERVER_IP}/api`;
// export const API_URL = 'http://localhost:8149';

console.log("API_URL", API_URL)
Expand Down

0 comments on commit 3dec932

Please sign in to comment.