Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/roe.dev. This is the code and content for my personal website, built in Nuxt. roe.dev
Something went wrong. Try again.
TypeScript
at feat/sentry
1234567891011121314151617import type { H3Event } from 'h3'
export function sendEmail (event: H3Event, subject: string, body: string) { return $fetch('https://api.resend.com/email', { method: 'POST', headers: { Authorization: `Bearer ${useRuntimeConfig(event).resendApiKey}`, }, body: { subject, text: body, from: 'noreply@roe.dev', to: 'daniel@roe.dev', }, })}