fix turnstile public key handling
All checks were successful
Generate a build and push to Cloudflare Pages / Build and Deploy to Cloudflare Pages (push) Successful in 1m24s

This commit is contained in:
2026-03-25 19:08:09 -04:00
parent d21806dfd1
commit d5c08a3408
2 changed files with 3 additions and 7 deletions

View File

@@ -10,10 +10,7 @@
let turnstileWidgetId: string | null = $state(null)
let turnstileContainer: HTMLElement
// Get Turnstile sitekey from environment variable
// Dev: uses test key from .env
// Prod: uses real key from Cloudflare Pages env vars
const TURNSTILE_SITEKEY = import.meta.env.PUBLIC_TURNSTILE_SITEKEY || '1x00000000000000000000AA'
const TURNSTILE_SITEKEY = import.meta.env.PUBLIC_TURNSTILE_SITEKEY
onMount(() => {
// Wait for Turnstile script to load