diff --git a/cryptide_project/src/App.tsx b/cryptide_project/src/App.tsx index be4588a..bffffc7 100644 --- a/cryptide_project/src/App.tsx +++ b/cryptide_project/src/App.tsx @@ -42,7 +42,7 @@ import messagesEn from './Translations/en.json'; import ErrorBoundary from './Error/ErrorBoundary'; import ErrorPage from './Error/ErrorPage'; -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; const messages = { fr: messagesFr, diff --git a/cryptide_project/src/Components/GraphContainer.tsx b/cryptide_project/src/Components/GraphContainer.tsx index 83697dd..bc6dac2 100644 --- a/cryptide_project/src/Components/GraphContainer.tsx +++ b/cryptide_project/src/Components/GraphContainer.tsx @@ -67,7 +67,7 @@ let cptBug = 0 let cptUseEffect = 0 let testPlayers: Player[] = [] -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; const MyGraphComponent: React.FC = ({onNodeClick, handleShowTurnBar, handleTurnBarTextChange, playerTouched, setPlayerTouched, changecptTour, solo, isDaily, isEasy, addToHistory, showLast, setNetwork, setNetworkEnigme, setPlayerIndex, askedWrong, setAskedWrong, importToPdf, setImportToPdf}) => { diff --git a/cryptide_project/src/Components/LobbyContainer.tsx b/cryptide_project/src/Components/LobbyContainer.tsx index 797cef5..3dca90a 100644 --- a/cryptide_project/src/Components/LobbyContainer.tsx +++ b/cryptide_project/src/Components/LobbyContainer.tsx @@ -20,7 +20,7 @@ interface LobbyContainerProps { //? mettre un "nbplayermax" si le nombre de joueur max peut etre fixé ? } -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; const LobbyContainer: React.FC = ({roomNum, HeadPlayer, nbPlayer, setFirst, started}) => { const theme=useTheme(); diff --git a/cryptide_project/src/Components/NavBar.tsx b/cryptide_project/src/Components/NavBar.tsx index 5921026..5e1d0da 100644 --- a/cryptide_project/src/Components/NavBar.tsx +++ b/cryptide_project/src/Components/NavBar.tsx @@ -25,7 +25,7 @@ import { useTheme } from '../Style/ThemeContext'; import { useAuth } from '../Contexts/AuthContext'; import { useNavigate } from 'react-router-dom'; -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; // @ts-ignore diff --git a/cryptide_project/src/Error/ErrorPage.tsx b/cryptide_project/src/Error/ErrorPage.tsx index dc3da66..d0d26dc 100644 --- a/cryptide_project/src/Error/ErrorPage.tsx +++ b/cryptide_project/src/Error/ErrorPage.tsx @@ -6,7 +6,7 @@ import './ErrorStyle.css'; import { FormattedMessage } from 'react-intl'; import { Button } from 'react-bootstrap'; -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; //@ts-ignore diff --git a/cryptide_project/src/Pages/InGame.tsx b/cryptide_project/src/Pages/InGame.tsx index 099b6ea..e530061 100644 --- a/cryptide_project/src/Pages/InGame.tsx +++ b/cryptide_project/src/Pages/InGame.tsx @@ -52,7 +52,7 @@ import Indice from '../model/Indices/Indice'; let cptNavigation = 0 -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; //@ts-ignore const InGame = ({locale, changeLocale}) => { diff --git a/cryptide_project/src/Pages/Lobby.tsx b/cryptide_project/src/Pages/Lobby.tsx index 572c36a..11e4465 100644 --- a/cryptide_project/src/Pages/Lobby.tsx +++ b/cryptide_project/src/Pages/Lobby.tsx @@ -50,7 +50,7 @@ import { DataSet } from 'vis-network'; let gameStarted = false let firstLaunch = true -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; function Lobby() { diff --git a/cryptide_project/src/Pages/LoginForm.tsx b/cryptide_project/src/Pages/LoginForm.tsx index dde8427..3ca9782 100644 --- a/cryptide_project/src/Pages/LoginForm.tsx +++ b/cryptide_project/src/Pages/LoginForm.tsx @@ -5,7 +5,7 @@ import { useAuth } from '../Contexts/AuthContext'; import AuthService from '../services/AuthService'; import '../Style/Global.css'; -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; const SignIn = () => { const navigate = useNavigate(); diff --git a/cryptide_project/src/Pages/NewPlay.tsx b/cryptide_project/src/Pages/NewPlay.tsx index 8c658f1..7e0baec 100644 --- a/cryptide_project/src/Pages/NewPlay.tsx +++ b/cryptide_project/src/Pages/NewPlay.tsx @@ -34,7 +34,7 @@ import Lobbies from './Lobbies'; let cptNavigation = 0 -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; diff --git a/cryptide_project/src/Pages/Play.tsx b/cryptide_project/src/Pages/Play.tsx index e783f53..9a8aca2 100644 --- a/cryptide_project/src/Pages/Play.tsx +++ b/cryptide_project/src/Pages/Play.tsx @@ -32,7 +32,7 @@ import Info from '../res/icon/infoGreen.png'; let cptNavigation = 0 -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; function Play() { diff --git a/cryptide_project/src/Pages/Profile.tsx b/cryptide_project/src/Pages/Profile.tsx index a59ad2e..39778eb 100644 --- a/cryptide_project/src/Pages/Profile.tsx +++ b/cryptide_project/src/Pages/Profile.tsx @@ -25,7 +25,7 @@ import Form from 'react-bootstrap/Form'; import ProgressBar from 'react-bootstrap/ProgressBar'; -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; //@ts-ignore const Profile = () => { diff --git a/cryptide_project/src/Pages/SignUpForm.tsx b/cryptide_project/src/Pages/SignUpForm.tsx index 9e29449..491b21f 100644 --- a/cryptide_project/src/Pages/SignUpForm.tsx +++ b/cryptide_project/src/Pages/SignUpForm.tsx @@ -4,7 +4,7 @@ import { useNavigate } from 'react-router-dom'; import AuthService from '../services/AuthService'; import '../Style/Global.css'; -const basePath = process.env.REACT_APP_BASE_PATH || ''; +const basePath = process.env.BASEPATH || ''; const SignUp = () => {