diff --git a/safeshare/safeshare-frontend/src/pages/downloadFile.js b/safeshare/safeshare-frontend/src/pages/downloadFile.js index 6f6731c..641730f 100644 --- a/safeshare/safeshare-frontend/src/pages/downloadFile.js +++ b/safeshare/safeshare-frontend/src/pages/downloadFile.js @@ -20,10 +20,9 @@ function DownloadFile() { 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 = process.env.REACT_APP_API_HOST || 'localhost:8000'; - const apiUrl = `${apiHost}:${apiPort}`; + console.log(apiUrl); function openModal() { setIsOpen(true); diff --git a/safeshare/safeshare-frontend/src/pages/shareFile.js b/safeshare/safeshare-frontend/src/pages/shareFile.js index d7006d0..05806d0 100644 --- a/safeshare/safeshare-frontend/src/pages/shareFile.js +++ b/safeshare/safeshare-frontend/src/pages/shareFile.js @@ -24,6 +24,7 @@ function ShareFile() { let subtitle; const [modalIsOpen, setIsOpen] = React.useState(false); const apiUrl = process.env.REACT_APP_API_HOST || 'localhost:8000'; + console.log(apiUrl); // const apiPort = process.env.REACT_APP_API_PORT || '8000'; // // const apiUrl = `${apiHost}:${apiPort}`;