Replies: 1 comment 4 replies
-
I am on board with this since I am also looking to add a newsletter component to my site. The only potential issue is that this might break the pure static site functionality of the existing template. I think it is fine as long as it is designed in a way such that if you want to deploy it to github pages, it's still possible by maybe changing the endpoint for the newsletter to one of those form backend for static site service providers and deleting the API routes folder. On the implementation, I propose adding it in the
In |
Beta Was this translation helpful? Give feedback.
-
Hey there,
I would like to provide the option of implementing a subscription newsletter based on the package "@mailchimp/mailchimp_marketing" for this template (branch demo/translate).
Simple subscription form added in index.js.
The API is added in pages/api/subscribe.js
Also, you need to create a ".env.local" file with following:
Do not forget to add Environment Variables to the settings where you deployed your site (example for Vercel: Project Settings/Environment Variables). And add your .env file to the .gitignore file.
In the next step, we will try to translate this subscription newsletter form and notices.
You can fetch directly from this branch.
The way for Buttondown
Beta Was this translation helpful? Give feedback.
All reactions