diff --git a/.env b/.env index 23d4457..a376ace 100644 --- a/.env +++ b/.env @@ -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="/" diff --git a/src/index.js b/src/index.js index d563c0f..db46643 100644 --- a/src/index.js +++ b/src/index.js @@ -4,6 +4,9 @@ import './index.css'; import App from './App'; 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')); root.render(