Skip to content

Commit

Permalink
harcode ip
Browse files Browse the repository at this point in the history
  • Loading branch information
pelazas committed Mar 12, 2024
1 parent ea16b5d commit b222a6f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion webapp/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_API_ENDPOINT=http://localhost:8000
REACT_APP_API_ENDPOINT=http://74.234.241.249
2 changes: 1 addition & 1 deletion webapp/src/components/game/Game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Game = () => {

const createGame = async () => {

const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000';
const apiEndpoint = 'http://74.234.241.249:8000';

try {
setPlayers([
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/game/PlayingGame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface PlayingGameProps {
const PlayingGame: FC<PlayingGameProps> = ({questions, setCurrentStage, setPlayers, players}) => {

const uuid = localStorage.getItem("userUUID");
const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000';
const apiEndpoint = 'http://74.234.241.249:8000';

const [currentQuestion, setCurrentQuestion] = useState(0);
const [correctAnswers, setCorrectAnswers] = useState(0);
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Login = (props: ActionProps) => {
const [error, setError] = useState('');
const [openSnackbar, setOpenSnackbar] = useState(false);

const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000';
const apiEndpoint = 'http://74.234.241.249:8000';

const handleReturnButtonClick = () => {
document.title = "Conocer y Vencer";
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/register/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Container, Typography, TextField, Snackbar, Stack, Button } from '@mui/
import { useTranslation } from 'react-i18next';
import './Register.scss';

const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000';
const apiEndpoint = 'http://74.234.241.249:8000';

type ActionProps = {
goBack:()=> void;
Expand Down

0 comments on commit b222a6f

Please sign in to comment.