mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
Supabase client wrapper
cgen-25038d95899246ef877143c34afc2184
This commit is contained in:
parent
5ffa2cf862
commit
966aef4e61
1 changed files with 5 additions and 0 deletions
5
website/src/website/switch/supabase.ts
Normal file
5
website/src/website/switch/supabase.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { createClient, SupabaseClient } from '@supabase/supabase-js';
|
||||
|
||||
const url = process.env.SUPABASE_URL as string;
|
||||
const key = process.env.SUPABASE_ANON_KEY as string;
|
||||
export const supabase: SupabaseClient | undefined = url && key ? createClient(url, key) : undefined;
|
||||
Loading…
Add table
Add a link
Reference in a new issue