Skip to content

Commit 041ff4a

Browse files
committed
type the client
1 parent 1f7bf57 commit 041ff4a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/website/app/utils/supabase/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { createBrowserClient } from "@supabase/ssr";
2+
import type { Database } from "@repo/database/dbTypes";
23

34
export const createClient = () => {
4-
return createBrowserClient(
5+
return createBrowserClient<Database, "public">(
56
process.env.NEXT_PUBLIC_SUPABASE_URL!,
67
process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY!,
78
);

0 commit comments

Comments
 (0)