docs: Vapron Type 2 migration runbook + seed-vapron-templates script #4046
Cross-repo impact
See what breaks downstream if this PR merges.
⮌ Merged
This pull request was merged into main.
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts
Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/AlecRae.com/pull/85
Summary
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)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 givenACCOUNT_IDCLAUDE.mdtimestampUsage (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.tsTest plan
ACCOUNT_ID=<id> bun run scripts/seed-vapron-templates.tsruns without errorGET /v1/templatesreturns all 10vapron.*entries🤖 Generated with Claude Code
Generated by Claude Code