The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Use preferred env var name
Jacob Lee27f0b4d89f3f
diff --git a/apps/docs/pages/guides/ai/langchain.mdx b/apps/docs/pages/guides/ai/langchain.mdxindex 9b704e1c226..674e16272cd 100644--- a/apps/docs/pages/guides/ai/langchain.mdx+++ b/apps/docs/pages/guides/ai/langchain.mdx@@ -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`);