This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
--- | |
<?xml version="1.0" encoding="utf-8"?> | |
<?xml-stylesheet href="/feed.xsl" type="text/xsl"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>{{ site.title }}</title> | |
<link href="{{ site.url }}{{ site.baseurl }}/feed.xml" rel="self"/> | |
<link href="{{ site.url }}{{ site.baseurl }}/" rel="alternate"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fetch = require("node-fetch"); | |
const apiKey = process.env.CONVERTKIT_API_KEY; | |
const apiFormURL = process.env.CONVERTKIT_NEWSLETTER_FORM; | |
exports.handler = async (event, context) => { | |
const email = event.queryStringParameters.email || "Oops, no email"; | |
const data = { | |
api_key: apiKey, | |
email: email, | |
}; |