Supabase · Function
createServerClient
createServerClient creates a Supabase client for Astro server code. It uses the project URL and publishable key from environment variables.
Last updated
Syntax
export function createServerClient() {
return createClient(supabaseUrl, supabasePublishableKey)
}In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
createClientPUBLIC_SUPABASE_URLPUBLIC_SUPABASE_PUBLISHABLE_KEYinstruments