Skip to content
masterclass Buddy

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.

Subscribe
  • createClient
  • PUBLIC_SUPABASE_URL
  • PUBLIC_SUPABASE_PUBLISHABLE_KEY
  • instruments

Source: Use Supabase with Astro | Supabase Docs. Checked 2026-11-03.