Skip to content

Commit 14e3a7b

Browse files
committed
Resend Configuration
1 parent 0ae880b commit 14e3a7b

6 files changed

Lines changed: 2796 additions & 2 deletions

File tree

api/.env.example

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
1+
# ── Local Express server (server.js) ─────────────────────────────────────────
2+
# Used only when running locally with: cd api && npm start
13
PORT=8787
24

35
# Comma-separated origins allowed to call this API from the browser.
46
ALLOWED_ORIGINS=https://ziongospelministry.org,https://www.ziongospelministry.org,http://127.0.0.1:4177,http://localhost:4177
57

6-
# SMTP settings for outgoing mail.
8+
# SMTP settings for local Express server outgoing mail.
79
SMTP_HOST=smtp.gmail.com
810
SMTP_PORT=587
911
SMTP_SECURE=false
10-
SMTP_USER=vio
12+
SMTP_USER=your-smtp-user@gmail.com
1113
SMTP_PASS=your-smtp-password-or-app-password
1214

1315
# Mail routing.
1416
CONTACT_TO=vinodraj.j@gmail.com
1517
FROM_EMAIL=no-reply@ziongospelministry.org
18+
19+
# ── Cloudflare Worker (worker.js) ─────────────────────────────────────────────
20+
# These are set as secrets in Cloudflare dashboard or via wrangler:
21+
# wrangler secret put RESEND_API_KEY
22+
# wrangler secret put CONTACT_TO
23+
# wrangler secret put FROM_EMAIL
24+
# wrangler secret put ALLOWED_ORIGINS
25+
#
26+
# RESEND_API_KEY — get free key at https://resend.com (3000 emails/month free)
27+
RESEND_API_KEY=re_xxxxxxxxxxxxxxxxxxxx

0 commit comments

Comments
 (0)