File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1- import { supabase } from '../../config/database' ; // Importando o cliente Supabase
1+ import supabase from '../../config/database' ; // Importando o cliente Supabase
22
33// Obter todos os posts
44export const getPosts = async ( ) => {
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ import { createClient } from '@supabase/supabase-js';
44const SUPABASE_URL = process . env . SUPABASE_URL ; // URL da sua instância do Supabase
55const SUPABASE_ANON_KEY = process . env . SUPABASE_KEY ; // Chave pública anônima (encontrada no painel do Supabase)
66
7- export const supabase = createClient ( SUPABASE_URL , SUPABASE_ANON_KEY ) ;
7+ const supabase = createClient ( SUPABASE_URL , SUPABASE_ANON_KEY ) ;
8+ export default supabase
You can’t perform that action at this time.
0 commit comments