feat(supabase): add credentials handling for Supabase API keys and URL

This commit introduces the ability to fetch and store Supabase API keys and URL credentials when a project is selected. This enables the application to dynamically configure the Supabase connection environment variables, improving the integration with Supabase services. The changes include updates to the Supabase connection logic, new API endpoints, and modifications to the chat and prompt components to utilize the new credentials.
This commit is contained in:
KevIsDev
2025-03-20 11:17:27 +00:00
parent 02974089de
commit bc7e2c5821
11 changed files with 192 additions and 33 deletions

View File

@@ -19,3 +19,13 @@ export interface SupabaseStats {
projects: SupabaseProject[];
totalProjects: number;
}
export interface SupabaseApiKey {
name: string;
api_key: string;
}
export interface SupabaseCredentials {
anonKey?: string;
supabaseUrl?: string;
}