fix env keys
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 47s

This commit is contained in:
2026-03-26 18:53:19 -04:00
parent 212baf8efc
commit 0e99cb4cd7
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ export const POST: APIRoute = async ({ request }) => {
}); });
} }
const apiKey = import.meta.env.RESEND_API_KEY; const apiKey = process.env.RESEND_API_KEY;
const toAddress = general.emailToContact?.trim(); const toAddress = general.emailToContact?.trim();
const fromAddress = general.emailFromContact?.trim(); const fromAddress = general.emailFromContact?.trim();
if (!apiKey || !toAddress || !fromAddress) { if (!apiKey || !toAddress || !fromAddress) {

View File

@@ -212,7 +212,7 @@ export const POST: APIRoute = async ({ request }) => {
}); });
} }
const apiKey = import.meta.env.RESEND_API_KEY; const apiKey = process.env.RESEND_API_KEY;
const fromAddress = general.fromAddressSubmission?.trim(); const fromAddress = general.fromAddressSubmission?.trim();
const toAddress = general.toAddressSubmission?.trim(); const toAddress = general.toAddressSubmission?.trim();