Spaces:
Sleeping
Sleeping
Update client/src/App.jsx
Browse files- client/src/App.jsx +8 -5
client/src/App.jsx
CHANGED
|
@@ -1,13 +1,16 @@
|
|
| 1 |
import React, { useState, useEffect } from 'react';
|
| 2 |
import { createClient } from '@supabase/supabase-js';
|
| 3 |
|
| 4 |
-
//
|
| 5 |
-
const
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
function App() {
|
|
|
|
|
|
|
| 11 |
const [session, setSession] = useState(null);
|
| 12 |
const [driveConnected, setDriveConnected] = useState(false);
|
| 13 |
const [prompt, setPrompt] = useState("");
|
|
|
|
| 1 |
import React, { useState, useEffect } from 'react';
|
| 2 |
import { createClient } from '@supabase/supabase-js';
|
| 3 |
|
| 4 |
+
// --- HARDCODED CONFIG (Fixes Black Screen) ---
|
| 5 |
+
const SUPABASE_URL = "https://whpciwshxecjvalksicw.supabase.co";
|
| 6 |
+
// PASTE YOUR KEY BELOW (The one starting with sb_publishable... or ey...)
|
| 7 |
+
const SUPABASE_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6IndocGNpd3NoeGVjanZhbGtzaWN3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzAxNDQyNjYsImV4cCI6MjA4NTcyMDI2Nn0.TwWAlQCUstvGykPhaDhPAVpTyg2MV7eltG7JFvjZ-zU";
|
| 8 |
+
|
| 9 |
+
const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
|
| 10 |
|
| 11 |
function App() {
|
| 12 |
+
// ... (Keep the rest of the code exactly the same) ...
|
| 13 |
+
|
| 14 |
const [session, setSession] = useState(null);
|
| 15 |
const [driveConnected, setDriveConnected] = useState(false);
|
| 16 |
const [prompt, setPrompt] = useState("");
|