From cf7f1843aad03014b86377f0d79895d615d40ea6 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 6 Aug 2025 00:21:26 +0000 Subject: [PATCH] Fix setup guide access in SupabaseStatus component cgen-48597391aab541e085cac2ff19164b2f --- client/components/SupabaseStatus.tsx | 30 +++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/client/components/SupabaseStatus.tsx b/client/components/SupabaseStatus.tsx index 87a3add7..365553ae 100644 --- a/client/components/SupabaseStatus.tsx +++ b/client/components/SupabaseStatus.tsx @@ -23,7 +23,35 @@ export default function SupabaseStatus() { size="sm" variant="outline" className="border-amber-500/50 text-amber-300 hover:bg-amber-500/20" - onClick={() => window.open('/SUPABASE_SETUP.md', '_blank')} + onClick={() => { + const setupContent = `# Quick Supabase Setup for AeThex + +## 1. Get Your Credentials +1. Go to your Supabase dashboard: https://app.supabase.com/projects/etzlqcghfdrkdqqfvzac +2. Go to Settings > API +3. Copy your Project URL and anon key + +## 2. Update Environment Variables +Use the DevServerControl or set these values: + +VITE_SUPABASE_URL=https://etzlqcghfdrkdqqfvzac.supabase.co +VITE_SUPABASE_ANON_KEY=your-anon-key-here + +## 3. Run Database Migration +Go to Database > SQL Editor in Supabase and run the migration from the full setup guide. + +## 4. Restart Dev Server +After setting variables, restart your development server.`; + + navigator.clipboard.writeText(setupContent).then(() => { + alert('Setup instructions copied to clipboard!'); + }).catch(() => { + const newWindow = window.open('', '_blank'); + if (newWindow) { + newWindow.document.write('
' + setupContent + '
'); + } + }); + }} > Setup Guide