We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a1b0ad commit 97748a2Copy full SHA for 97748a2
1 file changed
apps/website/app/utils/supabase/client.ts
@@ -1,13 +1,11 @@
1
import { createClient as createSupabaseClient } from "@supabase/supabase-js";
2
import { Database } from "@repo/database/types.gen.ts";
3
-import { envContents } from "@repo/database/dbDotEnv";
4
5
// Inspired by https://supabase.com/ui/docs/nextjs/password-based-auth
6
7
export const createClient = () => {
8
- const dbEnv = envContents();
9
- const url = dbEnv.SUPABASE_URL;
10
- const key = dbEnv.SUPABASE_ANON_KEY;
+ const url = process.env.SUPABASE_URL;
+ const key = process.env.SUPABASE_ANON_KEY;
11
12
if (!url || !key) {
13
throw new Error("Missing required Supabase environment variables");
0 commit comments