diff --git a/src/App.jsx b/src/App.jsx index 9e83a6b..01e12ae 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -12,7 +12,13 @@ import ProfileForm from './components/ProfileForm'; import './App.css'; + +// Load environment variables +console.log(process.env.NODE_ENV); + function App() { + // console.log(process.env.REACT_APP_TEXTSENDER_AUTH_API_URL); + return ( diff --git a/src/components/Login.jsx b/src/components/Login.jsx index ff30016..388fff4 100644 --- a/src/components/Login.jsx +++ b/src/components/Login.jsx @@ -50,6 +50,9 @@ const Login = () => { const handleSubmit = async (e) => { e.preventDefault(); setSubmitError(''); + // const baseUrl = process.env.TEXTSENDER_AUTH_API_URL; + const baseUrl = process.env.REACT_APP_TEXTSENDER_AUTH_API_URL; + console.log(baseUrl); const formErrors = validateForm(); if (Object.keys(formErrors).length > 0) {