From 15a7a0ad04d4b8268c64729722c17c2dede12567 Mon Sep 17 00:00:00 2001 From: William Oldham Date: Wed, 20 Dec 2023 15:22:44 +0000 Subject: [PATCH] Don't default to true for TURNSTILE_ENABELD --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 767cf8e..d3edff0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,7 +24,7 @@ const providers = makeProviders({ const app = new Hono(); function isTurnstileEnabled(context: Context) { - return (context.env?.TURNSTILE_ENABLED ?? "true") === "true" + return context.env?.TURNSTILE_ENABLED === "true" } app.use('*', (context, next) => {