Fix: Use RESEND_TOKEN environment variable name

This commit is contained in:
2025-12-05 15:05:12 -08:00
parent 0a842a3f94
commit 346fc1f842

View File

@@ -10,7 +10,7 @@ export async function onRequestPost({ request, env }) {
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': `Bearer ${env.RESEND_KEY}` 'Authorization': `Bearer ${env.RESEND_TOKEN}`
}, },
body: JSON.stringify({ email }) body: JSON.stringify({ email })
}); });