Mailgun starter module
Domain verification
Maps API keys, sending domains, DNS records, and webhook settings into your app.
- Files
- 14
- Lines
- 998
- Languages
- Config + Markdown + TypeScript + JSON
Included files
This page lists paths and purposes, not source contents.
.env.example
Configuration required by this starter pack.
Config
35 lines
ADAPT.md
Give these instructions to the coding agent working in the buyer's TypeScript app.
Markdown
186 lines
app/api/mailgun/send-test/route.ts
Accepts the email-test form and sends one catalog welcome message.
TypeScript
87 lines
app/api/mailgun/verify/route.ts
Mounts the offline Mailgun pack health check at GET /api/mailgun/verify.
TypeScript
7 lines
app/api/mailgun/webhook/route.ts
Mounts the Mailgun delivery webhook at POST /api/mailgun/webhook.
TypeScript
9 lines
app/email-test/route.ts
Serves a clickable page for sending the starter's welcome email end to end.
TypeScript
43 lines
OPERATIONS.md
The code handles routine sends and events.
Markdown
77 lines
package.json
Configuration required by this starter pack.
JSON
15 lines
README.md
This starter gives a TypeScript, Next.js-style app a safe Mailgun email flow using plain Web `Request` and `Response` route handlers.
Markdown
131 lines
src/setup/check-domain.ts
Checks the Mailgun sending domain and prints the DNS records that still need attention.
TypeScript
132 lines
src/setup/create-webhooks.ts
Creates or updates every Mailgun delivery webhook used by this starter.
TypeScript
156 lines
starter.json
Configuration required by this starter pack.
JSON
6 lines
TROUBLESHOOTING.md
Find the symptom and apply the fix first.
Markdown
99 lines
tsconfig.json
Configuration required by this starter pack.
JSON
15 lines
Questions about domain verification
Is this a Mailgun Next.js starter?
Yes. The pack is built for Next.js apps that need the Messages API, reusable templates, receipts, mailing lists, delivery webhooks, domain verification, and setup.