Skip to content

Commit

Permalink
feat: remove index.tsx from packages/transactioanl
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern committed Nov 27, 2023
1 parent 60db8ac commit 2d3e86e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/next-app/serverActions/sendEmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
import { Resend } from "resend"
import { render } from "@react-email/render";

import { CodepenChallengesEmail } from '@my-repo/transactional';
import { CodepenChallengesEmail } from '@my-repo/transactional/emails/CodepenChallengesEmail';

const resend = new Resend(process.env.RESEND_KEY);

export async function sendCodePenChallenges() {
const HTML = render(CodepenChallengesEmail());

return await resend.emails.send({
from: 'noreploy@yourdomain.com',
await resend.emails.send({
from: 'noreply@geiefi.com',
to: '[email protected]',
subject: 'Codepen challenges of the moment',
html: HTML
Expand Down
1 change: 0 additions & 1 deletion packages/transactional/index.tsx

This file was deleted.

0 comments on commit 2d3e86e

Please sign in to comment.