You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,5 +30,8 @@ npm install -g netlify-cli
30
30
netlify dev
31
31
```
32
32
33
+
## Create an environment variable
34
+
You must create and add your [Buttondown API key](https://buttondown.email/settings) as an [environment variable](https://docs.netlify.com/environment-variables/overview/) for your Netlify site before the serverless function will work.
Copy file name to clipboardExpand all lines: public/index.html
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -14,20 +14,16 @@ <h1>Buttondown and Netlify Functions Demo</h1>
14
14
<p>
15
15
This is an example of a custom HTML subscription form that uses a <atarget="_blank" href="https://docs.netlify.com/functions/overview/">Netlify Function</a> and the <atarget="_blank" href="https://docs.buttondown.email/api-reference/introduction">Buttondown API</a> to add a subscriber to an email newsletter.
16
16
</p>
17
+
<p>
18
+
This is not a working example. Clone this repository and deploy it to Netlify to try it out yourself.
A great place to start is to clone and deploy your own copy of this example. You can do that by clicking the button below.
@@ -38,6 +34,13 @@ <h2>Deploy your own</h2>
38
34
Clicking the button will clone <atarget="_blank" href="https://github.com/andrewstiefel/buttondown-netlify-function">this repo</a> and deploy it as a new site on <atarget="_blank" href="https://netlify.com">Netlify</a>
0 commit comments