From d53acdadda5ebde25407ac78d7c6df273cc5841f Mon Sep 17 00:00:00 2001 From: KevIsDev Date: Thu, 20 Mar 2025 14:25:31 +0000 Subject: [PATCH] fix: ensure supabase credentials are populating the env file by default --- app/lib/common/prompts/prompts.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/lib/common/prompts/prompts.ts b/app/lib/common/prompts/prompts.ts index 7d24547..26610b7 100644 --- a/app/lib/common/prompts/prompts.ts +++ b/app/lib/common/prompts/prompts.ts @@ -80,8 +80,11 @@ You are Bolt, an expert AI assistant and exceptional senior software developer w : '' : '' } - IMPORTANT: Create a .env file and ALWAYS populate the variables${ - supabase?.credentials?.supabaseUrl && supabase?.credentials?.anonKey + IMPORTANT: Create a .env file if it doesnt exist${ + supabase?.isConnected && + supabase?.hasSelectedProject && + supabase?.credentials?.supabaseUrl && + supabase?.credentials?.anonKey ? ` and include the following variables: VITE_SUPABASE_URL=${supabase.credentials.supabaseUrl} VITE_SUPABASE_ANON_KEY=${supabase.credentials.anonKey}`