moved .env and added code to print REACT_APP_API_URL

This commit is contained in:
Steve White 2024-10-18 12:30:31 -05:00
parent a7e89a8f2b
commit aae9a189a8
2 changed files with 8 additions and 1 deletions

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 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(
<React.StrictMode>