diff --git a/webapp/.env b/webapp/.env index c810bde..3a9d2b3 100644 --- a/webapp/.env +++ b/webapp/.env @@ -1 +1 @@ -REACT_APP_API_ENDPOINT=http://localhost:8000 \ No newline at end of file +REACT_APP_API_ENDPOINT=http://74.234.241.249 \ No newline at end of file diff --git a/webapp/src/components/game/Game.tsx b/webapp/src/components/game/Game.tsx index 368015c..5ec8ee7 100644 --- a/webapp/src/components/game/Game.tsx +++ b/webapp/src/components/game/Game.tsx @@ -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([ diff --git a/webapp/src/components/game/PlayingGame.tsx b/webapp/src/components/game/PlayingGame.tsx index 0cabba9..cd5a0a1 100644 --- a/webapp/src/components/game/PlayingGame.tsx +++ b/webapp/src/components/game/PlayingGame.tsx @@ -12,7 +12,7 @@ interface PlayingGameProps { const PlayingGame: FC = ({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); diff --git a/webapp/src/components/login/Login.tsx b/webapp/src/components/login/Login.tsx index feed050..ab4c5f2 100644 --- a/webapp/src/components/login/Login.tsx +++ b/webapp/src/components/login/Login.tsx @@ -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"; diff --git a/webapp/src/components/register/Register.tsx b/webapp/src/components/register/Register.tsx index 452ab32..c76de29 100644 --- a/webapp/src/components/register/Register.tsx +++ b/webapp/src/components/register/Register.tsx @@ -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;