diff --git a/src/components/waitList/WaitListForm.tsx b/src/components/waitList/WaitListForm.tsx index 2c3779c30..30a64fc7d 100644 --- a/src/components/waitList/WaitListForm.tsx +++ b/src/components/waitList/WaitListForm.tsx @@ -79,16 +79,19 @@ const WaitlistForm: React.FC = () => { } else { setErrors({}); try { - const response = await fetch(process.env.API_URL as string, { - method: "POST", - headers: { - "Content-Type": "application/json", + const response = await fetch( + process.env.NEXT_PUBLIC_API_URL as string, + { + method: "POST", + headers: { + "Content-Type": "application/json", + }, + body: JSON.stringify({ + full_name: formData.full_name, + email: formData.email, + }), }, - body: JSON.stringify({ - full_name: formData.full_name, - email: formData.email, - }), - }); + ); if (!response.ok) { const errorData = await response.json();