Skip to content

Commit

Permalink
Agregado REACT_APP_API_ENDPOINT a .env y Login.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 2, 2024
1 parent 5732731 commit e062746
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
teamname="wiq_es1a"
REACT_APP_API_ENDPOINT=http://localhost:8000
AUTH_SERVICE_URL=http://localhost:8002
USER_SERVICE_URL=http://localhost:8001
QUESTION_SERVICE_URL=http://localhost:8003
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ services:
ports:
- "3000:3000"
environment:
GATEWAY_SERVICE_URL: http://gatewayservice:8000
REACT_APP_API_ENDPOINT: http://gatewayservice:8000

prometheus:
image: prom/prometheus
Expand Down
1 change: 1 addition & 0 deletions webapp/src/components/Login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const Login = () => {

const apiEndpoint =
process.env.REACT_APP_API_ENDPOINT || "http://localhost:8000";
console.log(process.env.REACT_APP_API_ENDPOINT);

const loginUser = () => {
axios
Expand Down

0 comments on commit e062746

Please sign in to comment.