From 404810f226cb5478fa5813cac88f581359b817c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Loureiro?= Date: Mon, 9 Jun 2025 18:26:18 -0300 Subject: [PATCH] fix: remove backend URL dependency in contact form submission --- frontend/src/app/components/sections/Contact.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/app/components/sections/Contact.tsx b/frontend/src/app/components/sections/Contact.tsx index b4a40e3..3496f0d 100644 --- a/frontend/src/app/components/sections/Contact.tsx +++ b/frontend/src/app/components/sections/Contact.tsx @@ -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),