vercel-mailchimp-lambda

A lambda function to handle mailchimp subscribes to be deployed in Vercel

Usage no npm install needed!

<script type="module">
  import vercelMailchimpLambda from 'https://cdn.skypack.dev/vercel-mailchimp-lambda';
</script>

README

vercel-mailchimp-lambda

A lambda function to handle mailchimp subscribes to be deployed in Vercel

Development

Install & run the project with:

yarn install && yarn run micro

Deploy to vercel

Download and install Vercel cli and simply run:

$ vercel

Env variables

After configuring your audience in Mailchimp you should set up the following keys in your Vercel project dashboard:

API_KEY
LIST_ID

You can also define your env variables in vercel.json as such:

{
...
"env": {
        "API_KEY": "....",
        "LIST_ID": "...."
    }

Cross-Origin Resource Sharing (CORS)

This package supports CORS

License

Released under the MIT License