Story Maker
    Preparing search index...

    Function getSupabase

    • Creates and returns a Supabase server client for the given request event.

      Parameters

      • event: RequestEvent

        The SvelteKit request event object.

      Returns SupabaseClient<any, "public", any>

      A Supabase server client instance.

      This function initializes a Supabase server client with the public Supabase URL and anonymous key. It sets up custom cookie handling methods to work with SvelteKit's event.cookies API.

      The returned client can be used to interact with Supabase services server-side, with automatic handling of authentication cookies.