mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 15:31:13 -05:00
Remove debug console logs
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
import { useEffect } from 'react';
|
||||
import { logger } from '@/lib/logger';
|
||||
|
||||
export function useCaptchaBypass() {
|
||||
// Single layer: Check if environment allows bypass
|
||||
const bypassEnabled = import.meta.env.VITE_ALLOW_CAPTCHA_BYPASS === 'true';
|
||||
|
||||
// Log warning if bypass is active
|
||||
useEffect(() => {
|
||||
if (bypassEnabled && typeof window !== 'undefined') {
|
||||
console.warn(
|
||||
'⚠️ CAPTCHA BYPASS IS ACTIVE\n' +
|
||||
'CAPTCHA verification is disabled via VITE_ALLOW_CAPTCHA_BYPASS=true\n' +
|
||||
'This should ONLY be enabled in development/preview environments.\n' +
|
||||
'Ensure VITE_ALLOW_CAPTCHA_BYPASS=false in production!'
|
||||
logger.warn(
|
||||
'⚠️ CAPTCHA BYPASS IS ACTIVE - ' +
|
||||
'This should ONLY be enabled in development/preview environments.'
|
||||
);
|
||||
}
|
||||
}, [bypassEnabled]);
|
||||
|
||||
Reference in New Issue
Block a user