Email (Resend)
Connect Resend so users can receive verification emails and finish signing up
Users verify their email before signing in with a password. Connect Resend, then use your own inbox to complete a test signup.
1. Prepare a sending domain
- Create a Resend account.
- Add a domain you own in Domains and add the requested DNS records at your DNS provider.
- Wait for Resend to verify the domain, then choose a sender such as
noreply@example.com. - Create a sending key in API Keys.
2. Configure local email
Add these values to .dev.vars, then restart pnpm dev:
EMAIL_PROVIDER=resend
EMAIL_FROM=noreply@example.com
RESEND_API_KEY=re_your-api-keyThe sender must belong to your verified domain. This project uses Resend for email. Fill in all three values above, even if you have already saved mail settings in admin.
Admin → Settings (/admin/config) shows whether the Key is configured. Set its actual value in .dev.vars locally or Worker secrets online.
3. Verify signup email
Complete login setup, then:
- Open
/login/, switch to signup, and register a test account with an inbox you can access. - Check the sending status in Resend's Emails records.
- Open the real inbox and spam folder and find the verification message.
- Follow the link and confirm the website address is correct, verification completes, and login works.
Local .env should use VITE_APP_URL=http://localhost:3377. Open local verification links on the machine running the development server. After changing to your production domain, verify delivery and links again.
If email does not arrive
| Check | Action |
|---|---|
| Sending domain | Confirm DNS verification in Resend |
| Sender | Confirm EMAIL_FROM belongs to that domain |
| Key and permission | Confirm RESEND_API_KEY can send and the server was restarted |
| Delivery | Read Resend Emails status and errors, then check the inbox |
| Verification link | Match VITE_APP_URL to the actual site |
Customize email and deploy
To change the email copy or appearance, give your AI coding tool this task:
Update the verification and waitlist emails in
src/shared/components/email/with my product name and copy, keeping the verification link working. Use the existingstyles.tsfor shared styling.
After editing, send yourself another test email and check its content and links.
Upload EMAIL_PROVIDER, EMAIL_FROM, and RESEND_API_KEY to the production Worker using deployment. Next: finish login and admin setup.