diff --git a/.changeset/breezy-files-tell.md b/.changeset/breezy-files-tell.md new file mode 100644 index 000000000..839d21246 --- /dev/null +++ b/.changeset/breezy-files-tell.md @@ -0,0 +1,5 @@ +--- +"frontity": patch +--- + +Change CLI webhook to point to n8n instead of Integromat. diff --git a/packages/frontity/src/steps/index.ts b/packages/frontity/src/steps/index.ts index 9ab9a3956..283d00444 100644 --- a/packages/frontity/src/steps/index.ts +++ b/packages/frontity/src/steps/index.ts @@ -312,12 +312,15 @@ export const subscribe = async (email: string) => { if (!isEmailValid(email)) throw new Error("Email not valid. Please enter a valid email."); - return fetch("https://hook.integromat.com/gm0b502jo5acuhzko7gszx0kd9r52ofi", { - method: "POST", - body: JSON.stringify({ - event: "frontity-subscribe", - email: email.toLowerCase(), - }), - headers: { "Content-Type": "application/json" }, - }); + return fetch( + "https://n8n.frontity.org/webhook/62923334-59a4-484c-a9c2-632814b94225", + { + method: "POST", + body: JSON.stringify({ + event: "frontity-subscribe", + email: email.toLowerCase(), + }), + headers: { "Content-Type": "application/json" }, + } + ); };