protect /setup and use links for button

This commit is contained in:
Milo Schwartz 2024-11-26 20:30:52 -05:00
parent 7c9e57ef12
commit 41e531306d
No known key found for this signature in database
11 changed files with 48 additions and 63 deletions

View file

@ -1,4 +1,4 @@
import { render } from "@react-email/components";
import { render } from "@react-email/render";
import { ReactElement } from "react";
import emailClient from "@server/emails";
import logger from "@server/logger";
@ -21,7 +21,9 @@ export async function sendEmail(
return;
}
logger.debug("Rendering email templatee...")
const emailHtml = await render(template);
logger.debug("Done rendering email templatee")
const options = {
from: opts.from,