| name | klaviyo-deploy-integration |
| description | Deploy Klaviyo integrations to Vercel, Fly.io, and Cloud Run platforms.
Use when deploying Klaviyo-powered applications to production,
configuring platform-specific secrets, or setting up deployment pipelines.
Trigger with phrases like "deploy klaviyo", "klaviyo Vercel",
"klaviyo production deploy", "klaviyo Cloud Run", "klaviyo Fly.io".
|
| allowed-tools | Read, Write, Edit, Bash(vercel:*), Bash(fly:*), Bash(gcloud:*) |
| version | 1.7.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","klaviyo","email-marketing","cdp"] |
| compatibility | Designed for Claude Code |
Klaviyo Deploy Integration
Overview
Deploy Klaviyo-powered applications to Vercel, Fly.io, and Google Cloud Run
with proper secrets management and health checks. Every platform follows the
same shape — store the private key + webhook secret, wire a config file,
deploy, verify. The lean skeleton lives here; full per-platform recipes live
in references/platform-deployments.md.
Prerequisites
- Klaviyo production API key (
pk_*)
- Platform CLI installed (
vercel, fly, or gcloud)
- Application tested with
klaviyo-api SDK
klaviyo-prod-checklist completed
Instructions
The workflow is identical across platforms; only the CLI verbs change. Read
the target platform's section in
references/platform-deployments.md, then:
- Store secrets — inject
KLAVIYO_PRIVATE_KEY and
KLAVIYO_WEBHOOK_SIGNING_SECRET via the platform's secret store
(vercel env add, fly secrets set, or gcloud secrets create). Never
commit these to the repo.
- Write the platform config — use Write/Edit to create
vercel.json,
fly.toml, or a Dockerfile that binds the secrets and exposes a health
path. See the reference for the exact file contents.
- Add the universal health check — expose
src/health.ts (identical on
all platforms) at the path each platform probes (/api/health on Vercel,
/health on Fly.io and Cloud Run).
- Deploy — run
vercel --prod, fly deploy, or gcloud run deploy.
- Verify —
curl the health endpoint and confirm
services.klaviyo.connected is true.
Vercel skeleton (first example)
vercel env add KLAVIYO_PRIVATE_KEY production
vercel env add KLAVIYO_WEBHOOK_SIGNING_SECRET production
vercel --prod
curl -s https://your-app.vercel.app/api/health | jq