Skip to content

Commit a58337b

Browse files
committed
fix(env): made the supabase to use the root env
1 parent a3e4b56 commit a58337b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/web/lib/supabase.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
import { createClient } from "@supabase/supabase-js";
2+
import { config } from "dotenv";
3+
import { resolve } from "path";
4+
5+
config({ path: resolve(process.cwd(), "../../.env") });
26

37
const supabaseUrl = process.env.SUPABASE_URL!;
48
const supabaseAnonKey = process.env.SUPABASE_ANON_KEY!;

0 commit comments

Comments
 (0)