// ─────────────────────────────────────────────────────────────────────────────
// WORLDLINESS — Shared Supabase Client
// Loaded before cta.jsx and projects-app.jsx in both index.html and projects.html
//
// ⚠️  SECURITY: This anon/publishable key is safe to expose in client-side code
// PROVIDED that Row Level Security (RLS) is enabled on every table.
// Run SUPABASE_SETUP.sql before going live. Without RLS, anyone can
// read your leads table using this key.
// ─────────────────────────────────────────────────────────────────────────────

window.WL_SUPABASE_URL  = 'https://tsbesnuoewoiyaaazsbf.supabase.co';
window.WL_SUPABASE_ANON = 'sb_publishable_UqIuo_GzUF8ELSeP5fQtpA_Ic5NVJvw';

let _wlSb = null;
window.getSB = function () {
  if (!_wlSb) _wlSb = supabase.createClient(window.WL_SUPABASE_URL, window.WL_SUPABASE_ANON);
  return _wlSb;
};
