Integrate dotenv for environment variable management and enhance form error handling
- Added dotenv to load environment variables from a .env file in server.js for better configuration management. - Improved the Form component by refining error handling during form submission, including specific messages for different error scenarios. - Updated the CSRF token handling and ensured proper validation of response types from the contact API. - Enhanced user feedback by providing clearer messages for success and error states in the form submission process.
This commit is contained in:
Reference in New Issue
Block a user