error-handling #1
6
.env
6
.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="/"
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue