gatsby-theme-egghead-blog
gatsby-theme-egghead-blog copied to clipboard
Convertkit form doesn't work out of the box
I enabled the newsletter sign up, but the form included in the theme didn't quite work. From what it took to get it to work for me it was missing:
- Utilizing the PUBLIC_KEY that's in the .env files
- Setting
isSubmitting
to false when the submission was done
I couldn't find any documentation for the https://app.convertkit.com/forms/${FORM_ID}/subscriptions
endpoint being used, so it was a bit of trial and error to figure out that it was just missing the public key... The isSubmitting
issue was leading to the form never switching out for the message that they should check their inbox, even if the actual request was successful :)