Skip to content

Commit

Permalink
Use loops instead of sendgrid for the newsletter subscription (jozu-a…
Browse files Browse the repository at this point in the history
  • Loading branch information
javisperez authored Oct 2, 2024
1 parent a2972a5 commit cc22b2a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/.vitepress/theme/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,15 @@ const subscribeToNewsletter = async () => {
}
})
await axios.put('https://sendgrid-proxy.gorkem.workers.dev/v3/marketing/contacts', {
list_ids: [ LIST_ID ],
contacts: [ { email: email.value } ]
await axios.post('https://newsprxy.gorkem.workers.dev/', {
email: email.value,
userGroup: 'KitOps',
formName: 'KitOps-Community'
}, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Expect': ''
}
})
isSuccess.value = true
Expand Down

0 comments on commit cc22b2a

Please sign in to comment.