import { createClient } from "https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2";const SUPABASE_URL = "";const SUPABASE_KEY = "";// Create a single supabase client for interacting with your databaseconst supabase = createClient(SUPABASE_URL, SUPABASE_KEY);// Code here waits to run until the DOM is loaded.const getWorkshops = async () => { try { let { data: workshops } = await supabase .from('workshops') .select('*'); return workshops } catch (error) { console.log(`500 Internal Server Error. err: ${error}`); }}console.log(getWorkshops);
import { createClient } from "https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2";const SUPABASE_URL = "";const SUPABASE_KEY = "";// Create a single supabase client for interacting with your databaseconst supabase = createClient(SUPABASE_URL, SUPABASE_KEY);// Code here waits to run until the DOM is loaded.const getWorkshops = async () => { try { let { data: workshops } = await supabase .from('workshops') .select('*'); return workshops } catch (error) { console.log(`500 Internal Server Error. err: ${error}`); }}console.log(getWorkshops);
All files in the root directory. Getting the following error in the console;
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.