Documentation

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

  1. Create a Resend account.
  2. Add a domain you own in Domains and add the requested DNS records at your DNS provider.
  3. Wait for Resend to verify the domain, then choose a sender such as noreply@example.com.
  4. 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-key

The 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:

  1. Open /login/, switch to signup, and register a test account with an inbox you can access.
  2. Check the sending status in Resend's Emails records.
  3. Open the real inbox and spam folder and find the verification message.
  4. 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

CheckAction
Sending domainConfirm DNS verification in Resend
SenderConfirm EMAIL_FROM belongs to that domain
Key and permissionConfirm RESEND_API_KEY can send and the server was restarted
DeliveryRead Resend Emails status and errors, then check the inbox
Verification linkMatch 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 existing styles.ts for 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.

On this page