in case this happens to anyone else, strangely it was the variable names. changed PUBLIC_SUPABASE_URL and PUBLIC_SUPABASE_ANON_KEY to VITE_PUBLIC_SUPABASE_URL and VITE_PUBLIC_SUPABASE_ANON_KEY and it works. Weird bc I believe the svelte docs say that PUBLIC_... should work.