スターターアプリ
Transactional email
Resend、React Email template、安全な local auth link、永続 job 配信を設定します。
スターターのコミット
7d452a6と同期済みです。
Resend と React Email は統合済みです。RESEND_API_KEY と検証済み EMAIL_FROM を設定し、本番では SPF、DKIM、DMARC を整えます。
email verification、password reset、welcome、payment 成否、reservation 確認、組織 invite の template があります。src/services/email/ で調整し、配信 orchestration は service に置きます。
local は provider 未設定または AUTH_DEV_EMAIL_LINKS=true で auth link をログ出力できますが、本番は拒否します。product email は永続 job で、job UUID を provider idempotency key に使います。/api/cron/jobs を動かし、readiness degraded と retry 枯渇を監視します。
route から fire-and-forget せず、公開 test email endpoint も作りません。domain write 後に enqueue し、個人情報を最小化し、失敗、retry、duplicate、blocklist、多言語 link をテストします。