From aae9a189a8b887a41b8692705440f62ab1807cda Mon Sep 17 00:00:00 2001 From: Steve White Date: Fri, 18 Oct 2024 12:30:31 -0500 Subject: [PATCH] moved .env and added code to print REACT_APP_API_URL --- .env | 6 +++++- src/index.js | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) 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(