CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

docs: Vapron Type 2 migration runbook + seed-vapron-templates script #4046

Merged⚡ AI-generatedXSccantynz wants to mergeclaude/ecstatic-hopper-77iamvmainopened Jun 20, 20260/4 tasks
ccantynzcommented Jun 20, 2026

Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/AlecRae.com/pull/85


Summary

  • Adds docs/infra/vapron-migration-type2.md — authoritative 9-step runbook for wiring AlecRae as Vapron's transactional email MTA (account seed, sender domain registration, webhook setup, env vars on the bare-metal box, smoke test)
  • Adds scripts/seed-vapron-templates.ts — seeds the 10 Vapron platform email templates (verify-email, welcome, password-reset, magic-link, waitlist-confirm, subscription-created, payment-failed, deploy-success, deploy-failure, custom-domain-verified) into the DB for a given ACCOUNT_ID
  • Updates CLAUDE.md timestamp

Usage (on the box)

# Step 4 of the runbook — after bun run db:migrate + bun run scripts/seed.ts
ACCOUNT_ID=<vapron-account-id> bun run scripts/seed-vapron-templates.ts

Test plan

  • ACCOUNT_ID=<id> bun run scripts/seed-vapron-templates.ts runs without error
  • GET /v1/templates returns all 10 vapron.* entries
  • Smoke test from Step 8 of the runbook succeeds (template rendered, email queued)
  • Re-running the seed script is idempotent (upsert — no duplicate inserts)

🤖 Generated with Claude Code


Generated by Claude Code

Cross-repo impact

See what breaks downstream if this PR merges.

Analyze →
⮌ Merged

This pull request was merged into main.

c comment · e edit title · m merge · a approve · r request changes · ? shortcuts