mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-20 21:49:16 +00:00

* fix: extension new window loading with localStorage * fix: extension loading in new window * upgrade: @kksh/svelte5 * refactor: update SideBar import to Sidebar across desktop app * fix: safely remove test directories with existsSync check * feat: add open preference command with platform-specific shortcut * chore: clean up vite config trailing comma
20 lines
606 B
TypeScript
20 lines
606 B
TypeScript
import { SupabaseAPI } from "@kksh/supabase/api"
|
|
import type { Database } from "@kksh/supabase/types"
|
|
import * as sb from "@supabase/supabase-js"
|
|
import { SUPABASE_ANON_KEY, SUPABASE_URL } from "./constants"
|
|
|
|
// export const supabase = createSB(SUPABASE_URL, SUPABASE_ANON_KEY)
|
|
export const supabase: sb.SupabaseClient<Database> = sb.createClient<Database>(
|
|
SUPABASE_URL,
|
|
SUPABASE_ANON_KEY,
|
|
{
|
|
auth: {
|
|
flowType: "pkce"
|
|
}
|
|
}
|
|
)
|
|
|
|
export const storage = supabase.storage
|
|
export const supabaseExtensionsStorage = supabase.storage.from("extensions")
|
|
export const supabaseAPI = new SupabaseAPI(supabase)
|