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:
gpt-engineer-app[bot] 2025-02-26 16:25:57 +00:00
parent 5dc6e8d297
commit ecffcfed9a

View file

@ -7,10 +7,15 @@ import { Card } from "@/components/ui/card";
import { toast } from "sonner"; import { toast } from "sonner";
import { createClient } from "@supabase/supabase-js"; import { createClient } from "@supabase/supabase-js";
const supabase = createClient( // Initialize Supabase client with proper error handling
import.meta.env.VITE_SUPABASE_URL, const supabaseUrl = import.meta.env.VITE_SUPABASE_URL;
import.meta.env.VITE_SUPABASE_ANON_KEY 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() { export function MessageComposer() {
const [message, setMessage] = useState(""); const [message, setMessage] = useState("");