Skip to content

Commit

Permalink
Trying to update the release github action v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-qg committed Mar 14, 2024
1 parent dadc248 commit 80ee6dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion webapp/.env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
REACT_APP_API_ENDPOINT=http://localhost:8000
REACT_APP_API_ENDPOINT=http://localhost:8000
CONNECTION_WITH_QUESTIONS_API=http://localhost:8007
3 changes: 3 additions & 0 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ RUN npm install
ARG API_URI="http://localhost:8000"
ENV REACT_APP_API_ENDPOINT=$API_URI

ARG QUESTIONS_API="http://localhost:8007"
ENV CONNECTION_WITH_QUESTIONS_API=$QUESTIONS_API

#Create an optimized version of the webapp
RUN npm run build
RUN npm install serve
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/FirstGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import axios from 'axios';
import { useNavigate, useLocation } from 'react-router-dom';


const apiEndpoint = 'http://localhost:8007';
const apiEndpoint = process.env.CONNECTION_WITH_QUESTIONS_API || 'http://localhost:8007';
const Quiz = () => {

const navigation = useNavigate(); // Añade esto
Expand Down

0 comments on commit 80ee6dd

Please sign in to comment.