Don't default to true for TURNSTILE_ENABELD

This commit is contained in:
William Oldham
2023-12-20 15:22:44 +00:00
parent eb43dbd6f0
commit 15a7a0ad04

View File

@@ -24,7 +24,7 @@ const providers = makeProviders({
const app = new Hono(); const app = new Hono();
function isTurnstileEnabled(context: Context<Env>) { function isTurnstileEnabled(context: Context<Env>) {
return (context.env?.TURNSTILE_ENABLED ?? "true") === "true" return context.env?.TURNSTILE_ENABLED === "true"
} }
app.use('*', (context, next) => { app.use('*', (context, next) => {