'AWS Amplify environment variables (no backend)

I encounter a certain problem creating a contact form in my react app. I designed a form the receives name email and message, and wanted it to be sent via EmailJS to my email. The problem is - AWS Amplify environment variables are not read by my frontend app, and I'm struggling with finding a way to do it without building a backend (unless it would be relatively easy), and also without a form redirect that is caused by most regular html services of form submission.

Does anybody has an easy solution? a suggestion? If I need to I will try to build a backend as well but I wonder if there is a more simple approach. (If anybody knows if it can be solved with the amplify backend environment please inform me as well)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source