diff --git a/components/newsletter.tsx b/components/newsletter.tsx index 7f04ca18..21662201 100644 --- a/components/newsletter.tsx +++ b/components/newsletter.tsx @@ -3,6 +3,7 @@ import {useState} from "react"; import { websiteContactUrl } from "@/services/constants"; export const subscribeMutation = (formData: { email: string, message: string }) => { + console.log(websiteContactUrl) if (websiteContactUrl) { return fetch(websiteContactUrl, { method: 'POST', diff --git a/services/constants.ts b/services/constants.ts index 548dfaff..7be994e3 100644 --- a/services/constants.ts +++ b/services/constants.ts @@ -1 +1 @@ -export const websiteContactUrl = process.env.SUBSCRIPTION_URL \ No newline at end of file +export const websiteContactUrl = process.env.NEXT_PUBLIC_SUBSCRIPTION_URL \ No newline at end of file