import { createClient } from '@supabase/supabase-js' ; type SupaTable = 'profiles' ; type SupaStorageBucket = 'avatars' ; export const supabaseClient = createClient ( String ( import . meta . env . VITE_SUPABASE_URL ) , String ( import . meta . env . VITE_SUPABASE_ANON_KEY ) ) ; /**
 * Convenience re-exports for typed selections
 *
 */ export const auth = supabaseClient . auth ; export const storage = supabaseClient . storage ; param table returns export const from = ( table ) => supabaseClient . from ( table ) ; param bucket returns export const fromBucket = ( bucket ) => supabaseClient . storage . from ( bucket ) ;