The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(docs-gpt): update edge function supabase env variables
Greg Richardson4cedb31dbec2
diff --git a/supabase/functions/clippy-search/index.ts b/supabase/functions/clippy-search/index.tsindex 1160f43ce3c..f827ef72778 100644--- a/supabase/functions/clippy-search/index.ts+++ b/supabase/functions/clippy-search/index.ts@@ -5,8 +5,8 @@ import GPT3Tokenizer from 'https://esm.sh/[email protected]'import { Configuration, OpenAIApi } from 'https://esm.sh/[email protected]'const openAiKey = Deno.env.get('OPENAI_KEY')-const supabaseUrl = Deno.env.get('META_SUPABASE_URL')-const supabaseServiceKey = Deno.env.get('META_SUPABASE_SERVICE_KEY')+const supabaseUrl = Deno.env.get('SUPABASE_URL')+const supabaseServiceKey = Deno.env.get('SUPABASE_SERVICE_ROLE_KEY')export const corsHeaders = {'Access-Control-Allow-Origin': '*',@@ -34,7 +34,7 @@ serve(async (req) => {if (!supabaseUrl) {return new Response(JSON.stringify({- error: 'Missing environment variable META_SUPABASE_URL',+ error: 'Missing environment variable SUPABASE_URL',}),{status: 400,@@ -46,7 +46,7 @@ serve(async (req) => {if (!supabaseServiceKey) {return new Response(JSON.stringify({- error: 'Missing environment variable META_SUPABASE_SERVICE_KEY',+ error: 'Missing environment variable SUPABASE_SERVICE_ROLE_KEY',}),{status: 400,