Skip to content

Commit

Permalink
I lost the count and hope
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-qg committed May 2, 2024
1 parent 3cbd787 commit c245058
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webapp/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REACT_APP_API_ENDPOINT=http://localhost:8000
REACT_APIS_ENDPOINT=http://localhost:8100
REACT_APP_APIS_ENDPOINT=http://localhost:8100
2 changes: 1 addition & 1 deletion webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG API_URI1="http://localhost:8000"
ENV REACT_APP_API_ENDPOINT=$API_URI1

ARG API_URI2="http://localhost:8100"
ENV REACT_APIS_ENDPOINT=$API_URI2
ENV REACT_APP_APIS_ENDPOINT=$API_URI2

#Create an optimized version of the webapp
RUN npm run build
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/storeQuestion/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function App() {
const [currentPage, setCurrentPage] = useState(1);
const itemsPerPage = 10; // Número de preguntas por página

const apiEndpoint = process.env.REACT_APIS_ENDPOINT || 'http://localhost:8100';
const apiEndpoint = process.env.REACT_APP_APIS_ENDPOINT || 'http://localhost:8100';

useEffect(() => {
const obtenerPreguntas = async () => {
Expand Down
3 changes: 2 additions & 1 deletion webapp/src/usersRanking/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ function App() {
const [currentPage, setCurrentPage] = useState(1);
const itemsPerPage = 10; // Número de usuarios por página

const apiEndpoint = process.env.REACT_APIS_ENDPOINT || 'http://localhost:8100';
const apiEndpoint = process.env.REACT_APP_APIS_ENDPOINT || 'http://localhost:8100';
console.log(process.env.REACT_APP_APIS_ENDPOINT)

useEffect(() => {
const obtenerUsuarios = async () => {
Expand Down

0 comments on commit c245058

Please sign in to comment.