Skip to content

Commit

Permalink
fix: subscription url env var
Browse files Browse the repository at this point in the history
Signed-off-by: Neha Gupta <[email protected]>
  • Loading branch information
nehagup committed Mar 8, 2024
1 parent 634a485 commit 1dad34b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/newsletter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion services/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const websiteContactUrl = process.env.SUBSCRIPTION_URL
export const websiteContactUrl = process.env.NEXT_PUBLIC_SUBSCRIPTION_URL

0 comments on commit 1dad34b

Please sign in to comment.