mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 03:15:06 +03:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Simplified React getting-started tutorial: concise, action-oriented steps, inline code replaced by external sample references, removed the Bonus: Profile photos section, and expanded README guidance and setup steps. * **Examples** * User-management example converted to a user-focused auth flow with safer unmount handling, adjusted profile/account interactions, and updated sample references. * **Chores** * Upgraded example dependencies and tooling to align with newer React and ecosystem versions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
12 lines
347 B
JavaScript
12 lines
347 B
JavaScript
/**
|
|
* lib/supabaseClient.js
|
|
* Helper to initialize the Supabase client.
|
|
*/
|
|
|
|
import { createClient } from '@supabase/supabase-js'
|
|
|
|
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL
|
|
const supabasePublishableKey = import.meta.env.VITE_SUPABASE_PUBLISHABLE_DEFAULT_KEY
|
|
|
|
export const supabase = createClient(supabaseUrl, supabasePublishableKey)
|