summaryrefslogtreecommitdiff
path: root/apps/web/lib/supabase/client.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/lib/supabase/client.ts')
-rw-r--r--apps/web/lib/supabase/client.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/web/lib/supabase/client.ts b/apps/web/lib/supabase/client.ts
new file mode 100644
index 0000000..c6747fb
--- /dev/null
+++ b/apps/web/lib/supabase/client.ts
@@ -0,0 +1,8 @@
+import { createBrowserClient } from "@supabase/ssr"
+
+export function createSupabaseBrowserClient() {
+ return createBrowserClient(
+ process.env.NEXT_PUBLIC_SUPABASE_URL!,
+ process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!
+ )
+}