diff --git a/src/worker.ts b/src/worker.ts index e287130..f850726 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -175,6 +175,17 @@ export default { } return handleContact(request, env); } + if (url.pathname === "/api/contact-debug") { + return jsonResponse({ + ok: true, + hasTurnstileSecret: Boolean(env.TURNSTILE_SECRET_KEY), + hasAzureConnectionString: Boolean( + env.AZURE_COMMUNICATION_CONNECTION_STRING, + ), + hasContactFromEmail: Boolean(env.CONTACT_FROM_EMAIL), + hasContactToEmail: Boolean(env.CONTACT_TO_EMAIL), + }); + } if (env.ASSETS?.fetch) { return env.ASSETS.fetch(request); }