Use preferred env var name

This commit is contained in:
Jacob Lee authored and GitHub committed 2023-05-31 20:05:37 -07:00
1 parent c7f006ed3f
commit 27f0b4d89f
1 file changed
+4 -4
+4 -4
View File
@@ -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`);