/* TODO - You need to add a mailer integration in `integrations/` and import here. * * The integration file can be very simple. Instantiate the email client * and then export it. That way you can import here and anywhere else * and use it straight away. */ import previewEmail from "preview-email"; type ResetPasswordMailer = { to: string; token: string; }; export function forgotPasswordMailer({ to, token }: ResetPasswordMailer) { // In production, set APP_ORIGIN to your production server origin const origin = process.env.APP_ORIGIN || process.env.BLITZ_DEV_SERVER_ORIGIN; const resetUrl = `${origin}/reset-password?token=${token}`; const msg = { from: "TODO@example.com", to, subject: "Your Password Reset Instructions", html: `