diff --git a/safeshare/safeshare-frontend/env b/safeshare/safeshare-frontend/env index df7073a..f9fa079 100644 --- a/safeshare/safeshare-frontend/env +++ b/safeshare/safeshare-frontend/env @@ -1,2 +1 @@ -REACT_APP_API_HOST=http://127.0.0.1 -REACT_APP_API_PORT=8000 +REACT_APP_API_HOST=http://127.0.0.1:8000 diff --git a/safeshare/safeshare-frontend/src/pages/shareFile.js b/safeshare/safeshare-frontend/src/pages/shareFile.js index 00bab7e..d7006d0 100644 --- a/safeshare/safeshare-frontend/src/pages/shareFile.js +++ b/safeshare/safeshare-frontend/src/pages/shareFile.js @@ -23,10 +23,10 @@ function ShareFile() { const [errorMsg, setErrorcode] = useState(''); let subtitle; const [modalIsOpen, setIsOpen] = React.useState(false); - const apiHost = process.env.REACT_APP_API_HOST || 'localhost'; - const apiPort = process.env.REACT_APP_API_PORT || '8000'; - - const apiUrl = `${apiHost}:${apiPort}`; + const apiUrl = process.env.REACT_APP_API_HOST || 'localhost:8000'; + // const apiPort = process.env.REACT_APP_API_PORT || '8000'; + // + // const apiUrl = `${apiHost}:${apiPort}`; function openModal() { setIsOpen(true);