// Builder Analytics access list (by Privy login email).
// To grant a new person access: add their email below, or set VITE_ADMIN_EMAILS
// (comma-separated) in the build env. Then rebuild the client.
const DEFAULT_ADMINS = [
'serg5585@gmail.com',
];
const ENV_ADMINS = (import.meta.env.VITE_ADMIN_EMAILS as string | undefined)
?.split(',')
.map(e => e.trim())
.filter(Boolean) ?? [];
const ADMIN_EMAILS = [...DEFAULT_ADMINS, ...ENV_ADMINS].map(e => e.toLowerCase());
export function isAdminEmail(email?: string | null): boolean {
if (!email) return false;
return ADMIN_EMAILS.includes(email.toLowerCase());
}
📜 Git History
6c47fa4chore: local Polikopi project home + Phase 1 redesign artifacts12 days ago