From ec3d9698b576570ab3b64ae8ac29284e0389941c Mon Sep 17 00:00:00 2001 From: Calum Muir Date: Sun, 28 Dec 2025 12:42:40 +0000 Subject: [PATCH] Show warning when Turnstile key is missing --- src/pages/contact.astro | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pages/contact.astro b/src/pages/contact.astro index e0a3fd9..7a45dad 100644 --- a/src/pages/contact.astro +++ b/src/pages/contact.astro @@ -77,6 +77,13 @@ const turnstileSiteKey = import.meta.env.PUBLIC_TURNSTILE_SITE_KEY ?? ""; Send a message
+ { + !turnstileSiteKey && ( +

+ Turnstile is not configured. Set PUBLIC_TURNSTILE_SITE_KEY and redeploy to enable the form. +

+ ) + }