feat: Implement plan for bug fixes

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 13:27:23 +00:00
parent 827f0f8ea5
commit ce6c9d6866
14 changed files with 94 additions and 59 deletions

View File

@@ -30,6 +30,7 @@ import '@mdxeditor/editor/style.css';
import '@/styles/mdx-editor-theme.css';
import { useTheme } from '@/components/theme/ThemeProvider';
import { supabase } from '@/integrations/supabase/client';
import { invokeWithTracking } from '@/lib/edgeFunctionTracking';
import { getCloudflareImageUrl } from '@/lib/cloudflareImageUtils';
import { useAutoSave } from '@/hooks/useAutoSave';
import { CheckCircle2, Loader2, AlertCircle } from 'lucide-react';
@@ -140,9 +141,11 @@ export function MarkdownEditor({
const formData = new FormData();
formData.append('file', file);
const { data, error } = await supabase.functions.invoke('upload-image', {
body: formData
});
const { data, error } = await invokeWithTracking(
'upload-image',
formData,
undefined
);
if (error) throw error;