Remove Email
Remove transactional email sending and templates.
Steps
-
Delete files:
lib/email.ts(email sending utility)emails/directory (React Email templates, if present)
-
Remove env vars from
.env:EMAIL_FROMRESEND_API_KEY(or whichever email provider is configured)
-
Update references: Search the codebase for imports of
lib/emailand remove or replace them. Common locations:- Auth flows (welcome email on sign-up)
- Organization invitations (invite email)
- Contact form handler (confirmation email)
-
Optional: If you only want to disable emails without deleting the code, set
RESEND_API_KEYto an empty string. The email utility will silently skip sends when unconfigured.