mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 20:05:06 +03:00
Use preferred env var name
This commit is contained in:
1 parent
c7f006ed3f
commit
27f0b4d89f
1 file changed
+4
-4
@@ -101,8 +101,8 @@ import { createClient } from "@supabase/supabase-js";
|
||||
|
||||
// First, follow set-up instructions above
|
||||
|
||||
const privateKey = process.env.SUPABASE_PRIVATE_KEY;
|
||||
if (!privateKey) throw new Error(`Expected env var SUPABASE_PRIVATE_KEY`);
|
||||
const privateKey = process.env.SUPABASE_SERVICE_ROLE_KEY;
|
||||
if (!privateKey) throw new Error(`Expected env var SUPABASE_SERVICE_ROLE_KEY`);
|
||||
|
||||
const url = process.env.SUPABASE_URL;
|
||||
if (!url) throw new Error(`Expected env var SUPABASE_URL`);
|
||||
@@ -143,8 +143,8 @@ import { createClient } from "@supabase/supabase-js";
|
||||
|
||||
// First, follow set-up instructions above
|
||||
|
||||
const privateKey = process.env.SUPABASE_PRIVATE_KEY;
|
||||
if (!privateKey) throw new Error(`Expected env var SUPABASE_PRIVATE_KEY`);
|
||||
const privateKey = process.env.SUPABASE_SERVICE_ROLE_KEY;
|
||||
if (!privateKey) throw new Error(`Expected env var SUPABASE_SERVICE_ROLE_KEY`);
|
||||
|
||||
const url = process.env.SUPABASE_URL;
|
||||
if (!url) throw new Error(`Expected env var SUPABASE_URL`);
|
||||
|
||||
Reference in new issue
Block a user