mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 08:21:23 +02:00
refactor: restructure
monorepo with apps/ and services/ directories
This commit is contained in:
parent
25824ed0ac
commit
ff80aeec1f
4062 changed files with 2592 additions and 1278 deletions
1
apps/picture/packages/shared/src/api/index.ts
Normal file
1
apps/picture/packages/shared/src/api/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from './supabase'
|
||||
8
apps/picture/packages/shared/src/api/supabase.ts
Normal file
8
apps/picture/packages/shared/src/api/supabase.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { createClient } from '@supabase/supabase-js'
|
||||
import type { Database } from '../types/database.types'
|
||||
|
||||
export function createSupabaseClient(supabaseUrl: string, supabaseAnonKey: string) {
|
||||
return createClient<Database>(supabaseUrl, supabaseAnonKey)
|
||||
}
|
||||
|
||||
export type SupabaseClient = ReturnType<typeof createSupabaseClient>
|
||||
Loading…
Add table
Add a link
Reference in a new issue