From 1701289e3104bdc80d45253356db853e7dd75368 Mon Sep 17 00:00:00 2001 From: Katerina Skroumpelou Date: Fri, 1 Sep 2023 10:01:21 +0300 Subject: [PATCH] fix(nx-dev): restore the name of the supabase env var --- nx-dev/nx-dev/pages/api/query-ai-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx-dev/nx-dev/pages/api/query-ai-handler.ts b/nx-dev/nx-dev/pages/api/query-ai-handler.ts index d7cfc1b8e8939..4fb98fbe87a42 100644 --- a/nx-dev/nx-dev/pages/api/query-ai-handler.ts +++ b/nx-dev/nx-dev/pages/api/query-ai-handler.ts @@ -24,7 +24,7 @@ import GPT3Tokenizer from 'gpt3-tokenizer'; import { Stream } from 'openai/streaming'; const supabaseUrl = process.env['NX_NEXT_PUBLIC_SUPABASE_URL']; -const supabaseServiceKey = process.env['NX_SUPABASE_SERVICE_ROLE_KEY_ACTUAL']; +const supabaseServiceKey = process.env['NX_SUPABASE_SERVICE_ROLE_KEY']; const openAiKey = process.env['NX_OPENAI_KEY']; const tokenCountLimit = parseInt(process.env['NX_TOKEN_COUNT_LIMIT'] ?? '2500') > 0