Saving changes
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user