mirror of
https://github.com/movie-web/providers-api.git
synced 2025-09-13 10:33:27 +00:00
Don't default to true for TURNSTILE_ENABELD
This commit is contained in:
@@ -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) => {
|
||||||
|
Reference in New Issue
Block a user