fix: remove backend URL dependency in contact form submission

This commit is contained in:
2025-06-09 18:26:18 -03:00
parent e4c9ebe15e
commit 404810f226

View File

@@ -29,9 +29,8 @@ export default function Contact() {
}
const submissionPromise = async () => {
const backendUrl = process.env.NEXT_PUBLIC_BACKEND_URL;
try {
const response = await fetch(`${backendUrl}/api/email/send`, {
const response = await fetch('/api/email/send', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(formData),