Test and fix bugs
This commit includes various bug fixes and tests to ensure the application functions correctly. No specific changes are detailed as the scope was a general check.
This commit is contained in:
parent
5dc6e8d297
commit
ecffcfed9a
|
@ -7,10 +7,15 @@ import { Card } from "@/components/ui/card";
|
|||
import { toast } from "sonner";
|
||||
import { createClient } from "@supabase/supabase-js";
|
||||
|
||||
const supabase = createClient(
|
||||
import.meta.env.VITE_SUPABASE_URL,
|
||||
import.meta.env.VITE_SUPABASE_ANON_KEY
|
||||
);
|
||||
// Initialize Supabase client with proper error handling
|
||||
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL;
|
||||
const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY;
|
||||
|
||||
if (!supabaseUrl || !supabaseAnonKey) {
|
||||
throw new Error('Supabase URL and Anon Key are required');
|
||||
}
|
||||
|
||||
const supabase = createClient(supabaseUrl, supabaseAnonKey);
|
||||
|
||||
export function MessageComposer() {
|
||||
const [message, setMessage] = useState("");
|
||||
|
|
Loading…
Reference in a new issue