Skip to content

Commit

Permalink
fix: File case (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
bukinoshita authored Aug 8, 2023
1 parent d6395e7 commit cf7e276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/api/send/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { EmailTemplate } from '../../../components/EmailTemplate';
import { EmailTemplate } from '../../../components/email-template';
import { NextResponse } from 'next/server';
import { Resend } from 'resend';
import * as React from 'react';

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

Expand All @@ -10,7 +11,7 @@ export async function POST() {
from: 'Acme <[email protected]>',
to: ['[email protected]'],
subject: "Hello world",
react: EmailTemplate({ firstName: "John" }),
react: EmailTemplate({ firstName: "John" }) as React.ReactElement,
});

return NextResponse.json(data);
Expand Down
File renamed without changes.

0 comments on commit cf7e276

Please sign in to comment.