commented out unnecessary code

This commit is contained in:
Jacob Delgado 2024-09-01 00:58:11 -07:00
parent f6578cf60b
commit a99e936728
3 changed files with 4 additions and 7 deletions

View File

@ -1,15 +1,12 @@
"use server"
import { Resend } from "resend"
import { validateString } from "@/lib/utils";
import OrderFormEmailClient from "../emailTemplates/order-form-email-client";
import React from "react";
import 'dotenv/config';
const resend = new Resend(process.env.RESEND_API_KEY);
export const sendEmail = async (formData: FormData) => {
//rate limit

View File

@ -31,6 +31,6 @@ export async function POST(request: NextRequest) {
}
}
export async function GET(req: NextRequest){
return NextResponse.json({message: 'Hello'})
}
// export async function GET(req: NextRequest){
// return NextResponse.json({message: 'Hello'})
// }

View File

@ -37,7 +37,7 @@ export default function Home() {
// Send new order email to self
const clientEmail = formData.get('senderEmail') as string
console.log(JSON.stringify({"senderEmail":clientEmail}))
// console.log(JSON.stringify({"senderEmail":clientEmail}))
await fetch("/api/emails", {
method: "POST",
headers: {