Compare commits

..

1 commit

Author SHA1 Message Date
Benjamin Palko
93ef27ef25 check for undefined
All checks were successful
PR Gate / Checks (pull_request) Successful in 47s
2026-08-11 20:53:49 -04:00

View file

@ -17,7 +17,7 @@ export async function sendContactMessage(name: string, email: string, message: s
form.append('content', content);
if (!env.DISCORD_CONTACT_WEBHOOK) {
return;
throw new Error('Undefined discord webhook');
}
const url = new URL(env.DISCORD_CONTACT_WEBHOOK);