fix(waitlist): add delay before email to avoid rate limit

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-03-08 03:35:32 +00:00
parent 0a08706cf9
commit c333be67cd

View File

@@ -81,6 +81,8 @@ export async function action({ request }: Route.ActionArgs) {
return { error: FormError.Resend, message: res.error.message } return { error: FormError.Resend, message: res.error.message }
} }
await new Promise((resolve) => setTimeout(resolve, 1000))
const emailRes = await resend.emails.send({ const emailRes = await resend.emails.send({
from: "Aelis <no-reply@ael.is>", from: "Aelis <no-reply@ael.is>",
to: email, to: email,