Open toddpadwick opened 1 year ago
@toddpadwick I had the same problem and got it to work with that:
const result = await $fetch("/api/newsletter/subscribe", {
method: "post",
body: { email: emailAddress },
});
thank you for this @samuelreichor 🙏🏽
Hi, I am struggling to get this to work. I have the below setup, but I get
ReferenceError: useNewsletterSubscribe is not defined
. Any idea what I'm doing wrong?component:
Nuxt.config
error:
Nuxt info