error-handling #1

Merged
stwhite merged 24 commits from error-handling into main 2024-10-30 15:19:49 +00:00
2 changed files with 8 additions and 1 deletions
Showing only changes of commit aae9a189a8 - Show all commits

6
.env
View File

@ -1 +1,5 @@
REACT_APP_API_URL=http://127.0.0.1:8080 # URL of the API
REACT_APP_API_URL=http://localhost:8080
# Base URL of the webapp
REACT_APP_BASE_URL="/"

View File

@ -4,6 +4,9 @@ import './index.css';
import App from './App'; import App from './App';
import reportWebVitals from './reportWebVitals'; import reportWebVitals from './reportWebVitals';
// Log the environment variables
console.log('REACT_APP_API_URL:', process.env.REACT_APP_API_URL);
const root = ReactDOM.createRoot(document.getElementById('root')); const root = ReactDOM.createRoot(document.getElementById('root'));
root.render( root.render(
<React.StrictMode> <React.StrictMode>