Fix initialization order of isSupabaseConfigured
cgen-c0bd5b2bddf64725b7b6386bb5e6f48c
This commit is contained in:
parent
63ee6e6dd1
commit
f1c849b472
1 changed files with 3 additions and 3 deletions
|
|
@ -5,6 +5,9 @@ import { mockAuth } from "./mock-auth";
|
|||
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL;
|
||||
const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY;
|
||||
|
||||
// Check if we have valid environment variables
|
||||
export const isSupabaseConfigured = !!(supabaseUrl && supabaseAnonKey);
|
||||
|
||||
console.log("Supabase Config:", {
|
||||
hasUrl: !!supabaseUrl,
|
||||
hasKey: !!supabaseAnonKey,
|
||||
|
|
@ -13,9 +16,6 @@ console.log("Supabase Config:", {
|
|||
isSupabaseConfigured
|
||||
});
|
||||
|
||||
// Check if we have valid environment variables
|
||||
export const isSupabaseConfigured = !!(supabaseUrl && supabaseAnonKey);
|
||||
|
||||
let supabaseClient: any = null;
|
||||
|
||||
if (isSupabaseConfigured) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue