I am unable to fetch data from my table while running locally. It does work once deployed though. I have logged my
SUPABASE_URL
SUPABASE_URL
and
SUPABASE_ANON_KEY
SUPABASE_ANON_KEY
and those are populated successfully. I only have one project, I have linked it and am running
supabase start
supabase start
,
supabase functions serve function-name
supabase functions serve function-name
. Here is the only code that is being executed which is modeled directly off of the examples provided.
import { createClient } from "https://esm.sh/@supabase/supabase-js@^1.33.2";export const supabaseClient = createClient( // Supabase API URL - env var exported by default when deployed. Deno.env.get("SUPABASE_URL") ?? "", // Supabase API ANON KEY - env var exported by default when deployed. Deno.env.get("SUPABASE_ANON_KEY") ?? "");
import { createClient } from "https://esm.sh/@supabase/supabase-js@^1.33.2";export const supabaseClient = createClient( // Supabase API URL - env var exported by default when deployed. Deno.env.get("SUPABASE_URL") ?? "", // Supabase API ANON KEY - env var exported by default when deployed. Deno.env.get("SUPABASE_ANON_KEY") ?? "");
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.