Saving changes

This commit is contained in:
2026-07-04 16:02:56 -04:00
parent c935f53df8
commit d4d1e72ef6
2 changed files with 9 additions and 0 deletions
+6
View File
@@ -12,7 +12,13 @@ import ProfileForm from './components/ProfileForm';
import './App.css'; import './App.css';
// Load environment variables
console.log(process.env.NODE_ENV);
function App() { function App() {
// console.log(process.env.REACT_APP_TEXTSENDER_AUTH_API_URL);
return ( return (
<Router> <Router>
<Routes> <Routes>
+3
View File
@@ -50,6 +50,9 @@ const Login = () => {
const handleSubmit = async (e) => { const handleSubmit = async (e) => {
e.preventDefault(); e.preventDefault();
setSubmitError(''); 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(); const formErrors = validateForm();
if (Object.keys(formErrors).length > 0) { if (Object.keys(formErrors).length > 0) {