From 5f01d89a62e4620dba98af2ef5ac5d19422bd385 Mon Sep 17 00:00:00 2001 From: Calum Muir Date: Sun, 28 Dec 2025 13:14:51 +0000 Subject: [PATCH] Await contact handler to surface errors --- functions/api/contact.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/contact.ts b/functions/api/contact.ts index c8a1faa..21e9f1a 100644 --- a/functions/api/contact.ts +++ b/functions/api/contact.ts @@ -156,7 +156,7 @@ export const onRequest: PagesFunction = async (context) => { 405, ); } - return handlePost(context); + return await handlePost(context); } catch (error) { const message = error instanceof Error ? error.message : "Unknown error";