Function createServerSupabaseClient
- createServerSupabaseClient<Database, SchemaName, Schema>(context, __namedParameters?): default<Database, SchemaName, Schema>
-
Type Parameters
-
Database = any
-
SchemaName extends string = "public" extends keyof Database
? "public"
: string & keyof Database
-
Schema extends GenericSchema = Database[SchemaName] extends GenericSchema
? any[any]
: any
Parameters
-
context: GetServerSidePropsContext<ParsedUrlQuery, PreviewData> | {
req: NextApiRequest;
res: NextApiResponse<any>;
}
-
__namedParameters: {
cookieOptions?: CookieOptionsWithName;
options?: SupabaseClientOptionsWithoutAuth<SchemaName>;
supabaseKey?: string;
supabaseUrl?: string;
} = {}
-
Optional
cookieOptions?: CookieOptionsWithName
-
Optional
options?: SupabaseClientOptionsWithoutAuth<SchemaName>
-
Optional
supabaseKey?: string
-
Optional
supabaseUrl?: string
Returns default<Database, SchemaName, Schema>
Deprecated
utilize the
createPagesServerClient
function instead