mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 02:15:05 +03:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? docs update ## What is the current behavior? Inconsistent naming of publishable key environment variables across dashboard, docs, ai skills, templates etc ## What is the new behavior? Consistent naming of publishable key environment variables across dashboard, docs, ai skills, templates etc <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated environment variable naming across example projects. Changed `VITE_SUPABASE_PUBLISHABLE_DEFAULT_KEY` to `VITE_SUPABASE_PUBLISHABLE_KEY` in configuration and initialization files for the React quickstart and user-management examples. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Chris Chinchilla <chris.ward@supabase.io>
12 lines
339 B
JavaScript
12 lines
339 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_KEY
|
|
|
|
export const supabase = createClient(supabaseUrl, supabasePublishableKey)
|