Server Component Client In Grida Forms Server.ts
Grida Forms server.ts has multiple Server Component clients defined, using @supabase/supabase-js for custom schema configuration, differing from Supabase Auth Docs' @supabase/ssr import.
In this article, we review the code in server.ts in Grida. Well, what’s so special about this file? let’s find out. Server Component Client Before we look at Grida Forms server.ts, Let’s first understand what a Server Component Client means. In the Supabase Auth guides, at step 3, you will find the information about Server Component Client and it has the below code. import { createServerClient } from '@supabase/ssr' import { cookies } from 'next/headers' export async function createClient() { const cookieStore = await cookies() return createServerClient( process.env.NEXT_PU...